why, getting compile time error? (its working fine in netbeans)

Main.java:8: error: class cool_guys is public, should be declared in a file named cool_guys.java public class cool_guys

@akash_kumar : Read the FAQ’s . You have to name your class which contains main function as “Main” and nothing else . That’s a rule of submission at Code Chef judge

You can name your class with anything, its not necessary to name it Main; you just have to remove the public written before it.

public class cool_guys {

Change this to

class cool_guys {
1 Like