I don't understand why I'm getting an error here code below:
public class Lab1HW { public static void main(String[] args) {
System.out.println("Computer Science, Yes!!!!");
}
}
CodePudding user response:
do following steps: write code as:
public class Lab1HW{
public static void main(String[] args){
System.out.println("Computer Science, Yes!!!!");
}
}
then save file using same name as class name. in you case Lab1HW.java then you have to compile and run.. output will be
Computer Science, Yes!!!!
CodePudding user response:
your code seems fine, just try writing it this way or first try running it on an online compiler.
public class Lab1HW{
public static void main(String[] args){
System.out.println("Computer Science, Yes!!!!");
}
}
