Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[TuT] Getting started with Java Programming!
#21
(10-01-2010, 10:01 AM)Untouch Wrote: I just started learning java but this part isn't completely accurate it should be writing like this (i think):
Code:
public class HelloWorld
{
        public static void Main(String []args)

      {
           System.out.println("Hello World");
      }

}// end class

Doesn't matter where you put the squigglies, as long as there are in the right place. It's just a matter of preference for programmers. I prefer to do it like this:
Code:
public Constructor() {
//content
}
but you can do it however you want.

Also you wrote your main method wrong, it's
Code:
public static void main(String[] args) {
}
(Java is case sensitive)
Reply


Messages In This Thread
RE: [TuT] Getting started with Java Programming! - by Jake - 10-15-2010, 11:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  15 Tutorials to get you started with Java RDCA 20 3,742 01-14-2012, 07:14 PM
Last Post: RDCA
  why java haphazard 8 1,764 12-12-2011, 03:23 AM
Last Post: RDCA
  Need Java help from java expert. Blazin 2 2,096 09-07-2011, 02:43 PM
Last Post: AceInfinity
  Java help php 1 1,039 04-06-2010, 06:41 AM
Last Post: php
  [TUT]GLOBAL VARIABLES FOR JAVA!!![TUT] Ⱳąŗɗ 4 1,393 03-29-2010, 01:58 PM
Last Post: Project Evolution

Forum Jump:


Users browsing this thread: 9 Guest(s)