Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Name{
- public static void main(String args[]){
- // This is where your program begins. You start your code here.
- // When you run a program, in this case Name.java it will look for the main method
- // This method must be static.
- // The main method must provide an array of strings as an argument
- // This is for arguments passed when you run the java file
- // For example, if your ran the following command
- // java Name hello word
- // Then args would contain args[0] = "hello" args[1] = "world"
- // While this can be useful, it's rarely used.
- }
- }
Add Comment
Please, Sign In to add comment