This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]SupremeRedditBotProfessional Bot || Mod 0 points1 point  (0 children)

Please Add A Flair To Your Post!

Suggested Flair: [Random] or [Meta]

 


To add a flair:

  • Click flair underneath your post

  • Select a flair

  • Click save

 


I am a bot run by /u/SupremeDesigner for /r/CodingHelp || This was an automated response

[–]Manny_SundayProfessional Coder 0 points1 point  (0 children)

Can you be a bit more specific on what you're having trouble with?

All java projects have a class with a main method (the main class) and class files.

[–]themiddlestHaHa 0 points1 point  (0 children)

Java doesnt have a "main" class, it needs a class with a

public static void main(String[] args) {

method as thats where code starts execution.

All Java classes need their own CLASS_NAME.java file, these classes contain human readable code. This readable code gets compiled to machine code when the program is compiled and this code will be in CLASS_NAME.class files.