PROGRAM NOT WORKING PLS TELL THE ERROR

0 smit patel · March 16, 2015
class qpples {
public static void main(string args[]){
       system.out.println("hello world");
}
}

Post a Reply

Replies

Oldest  Newest  Rating
+1 Umar ( ゚ヮ゚) · March 17, 2015
class qpples {
public static void main(string args[]){
system.out.println("hello world");
}
}


The Fix: 

1. your class is misspelled, should be Apples. But in your case it's qpples lol

2. your System.out.println("Hello World");   ---> System.out.println always starts with Capital "S"

3. your (string[]args) --> again a small syntax error it should be (String[]args)

Final Code:

class qpples {
public static void main (String[]args) {

System.out.println("Hello World);

}
}
0 Dol Lod · March 16, 2015
Shouldn't the S in System be capital? Additionally, the S in string should be capital. Lastly, in java, arrays are put in as parameters like (String[] args). 
  • 1

Java / Android Development

107,003 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator