Because that doesn't make sense. For example, System.out.println(String) is a method takes a String parameter, right? How would that method know what to print without that parameter? Methods are...
Type: Posts; User: KevinWorkman
Because that doesn't make sense. For example, System.out.println(String) is a method takes a String parameter, right? How would that method know what to print without that parameter? Methods are...
More recommended reading: Lesson: A Closer Look at the "Hello World!" Application (The Java™ Tutorials > Getting Started)
Did you read the tutorial posted by Tjstretch? You should read that entire section, including this part: Passing Information to a Method or a Constructor (The Java™ Tutorials > Learning the Java...