Neocolab
Neocolab
Scanner;
class Main {
// You are using Java
static class CustomClass {
private String name;
public CustomClass(String name){
this.name = name;
}
int n = Integer.parseInt(scanner.nextLine().trim());
scanner.close();
}
}
class PriceComparator {
//Type your code here
public static int compare(Product a,Product b){
return Double.compare(b.price,a.price);
}
}