Page 1 of 1 [ 3 posts ] 

dasanbe
Blue Jay
Blue Jay

User avatar

Joined: 13 Sep 2007
Age: 43
Gender: Male
Posts: 92

15 Sep 2007, 1:13 pm

I'm taking a Java Programming course.
I have no prior programming experience but I think that the course is alot of fun. I just have to study as much as I can in my spare time to keep up with the pace of all of the other people in the class. Does anyone else feel that Java is a little bit crazy?

import java.util.*;
public class im_a_java_programmer
{
public static void main(String[] args)
{
System.out.println("Whoa this is some crazy stuff.")
}



elvenmage
Snowy Owl
Snowy Owl

User avatar

Joined: 11 Sep 2007
Gender: Male
Posts: 125

15 Sep 2007, 11:07 pm

Naa Java is a great langauge.

...untill you start getting hundreds of errors.



nitro2k01
Snowy Owl
Snowy Owl

User avatar

Joined: 5 Feb 2007
Gender: Male
Posts: 173

16 Sep 2007, 4:05 pm

* You don't need to include java.util for such a simple program.
* The naming convention for classes in Java is to BeginEachWordWithACapitalLetter.
* You're missing one }
* You're missing a ; after the println statement.
* Put your code in [code][/code] tags!

Code:
public class ImAJavaProgrammer
{
  public static void main(String[] args)
  {
    System.out.println("Whoa this is some crazy stuff.");
  }
}
I don't think Java is that bad. In comparison it's an average language, I think.


_________________
l_______/\________|