0

looks like java has some cut and dried rules about capitalization... I typed a code using ...main (string []args)... and got an error until I changed it to ...main (String []Args)... pls anyone know d rules guiding character CAPITALIZATION in java... pls post, I'll appreciate.

CAPITALIZATION

1st Oct 2016, 5:36 AM
Nwaburu Emeka Christian
Nwaburu Emeka Christian - avatar
2 ответов
0
its because string is an object or class in java. classes are capitalized. variables/methods follow camelcase conventions. you can also write it this way: String isObject = new String("Woah man."); System.out.println(isObject);
1st Oct 2016, 5:52 AM
Mythos
0
thanks
1st Oct 2016, 5:22 PM
Nwaburu Emeka Christian
Nwaburu Emeka Christian - avatar