Thread: First Java Class at college

  1. #1
    and the Hat of Clumsiness GanglyLamb's Avatar
    Join Date
    Oct 2002
    Location
    between photons and phonons
    Posts
    1,110

    First Java Class at college

    Hey everyone,

    today i just started with Java in college and man, I never thught Java could be that dull...

    I mean common it simply doesnt make sense at all in some point

    Code:
    public static void main ( ) {
    I was thought in C that ( like Salem says it nicely ) VOID mainers are DOOMED...

    Well in Java void mainers are hailed apparently, i asked the lecturer why and he said well look this is the way u code in Java . (note the dot )

    Also i cant even change my app file name or the app wont run ( even the simplest example of Hello World will not run like that ) ...

    Bottom line i just started hating Java and that on the first day of my life i have a Java coding experience...

    Ahhh it just cant get worse...

    Do you feel the same? ( ppl who are forced in taking Java and feel much more at ease with C programming ?? )...

    Greets,

    GAnglylamb
    Last edited by GanglyLamb; 09-21-2004 at 02:51 PM.

  2. #2
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572
    I don't feel the same... right now it might seem weird, but once you get a hang of it you'll see how much simpler things could be done in Java compared to C++. At the moment I like java more than C++, (don't kill me!), there are a few drawback like System.out.println(), or the whole deal about getting input from command line... but there are so many pluses.

    Don't take a negative attitude towards it or you will never like it (that doesn't only go for Java )... I just learned java over the summer, but with a great c++ background it was a breeze. I picked up "Beginning Java 2" by Horton and "Java in a nutshell" (O'reilly series), and I felt comfortable with the syntax within a week - everything else is the same - computer science.

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  3. #3
    and the Hat of Clumsiness GanglyLamb's Avatar
    Join Date
    Oct 2002
    Location
    between photons and phonons
    Posts
    1,110
    System.out.println(),
    Indeed right on, that was bothering me very much today i so like my C way printf...

    Although the syntax is very alike (if not almost the same) it seems weird to me and yes probably i should just get a positive attitude towards Java else i will never get anywheree in it...

  4. #4
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Quote Originally Posted by GanglyLamb
    Indeed right on, that was bothering me very much today i so like my C way printf...
    Java 5.0 has printf

    My school actually uses the latest version of Java, which apart from printf has other nice possibilities like generic programming.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  5. #5
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572
    >>Java 5.0 has printf

    you mean SDK 1.5 I think... and yes it does. My school is stil using 1.4 on their machines

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  6. #6
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Quote Originally Posted by axon
    >>Java 5.0 has printf

    you mean SDK 1.5 I think... and yes it does. My school is stil using 1.4 on their machines
    Actually, no. The external version of the new Java SDK is 5.0.
    The internal version is 1.5.0. Sun renamed it because 5.0 sounded cooler.

    http://java.sun.com/j2se/1.5.0/docs/.../features.html
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  7. #7
    and the Hat of Clumsiness GanglyLamb's Avatar
    Join Date
    Oct 2002
    Location
    between photons and phonons
    Posts
    1,110
    Since we are using 1.4 i guess im stuck with System.out.println ...

    Well who said life is easy...nobody and if one did then its a fool...

  8. #8
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    Java is a great language and is totally worth learning. Im diving into the world of J2EE programming right now. (Application servers, jsp's, EJB's, etc...)

    Its not the same as C but thats no reason to hate it. You should get accustom to programming without being dependant on one language. You never know what jobs/school might throw at you.

  9. #9
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572
    what IDE are you using? netbeans has a feature where you type in "sout" and press space and it does the whole System.out.println for you...meh, JBuilder might have a similar feature but I haven't found it

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  10. #10
    and the Hat of Clumsiness GanglyLamb's Avatar
    Join Date
    Oct 2002
    Location
    between photons and phonons
    Posts
    1,110
    I am installing netbeans as im speaking .

  11. #11
    Quietly Lurking
    Join Date
    Aug 2001
    Posts
    208
    I believe JDK 1.5 is still beta which might be why your school is not using it. Im also a C programmer stuck in a java class. While some things are nice in Java the absolutly horrible console I/O code and the annoyances of trying to get .jar files created correctly are enough to make me long for a class in C++

  12. #12
    unleashed alphaoide's Avatar
    Join Date
    Sep 2003
    Posts
    696
    My only trouble with java is using the IDE to build/execute my project. I keep switching between 'execute this file' and 'execute this project' to actually run the multi-file project. One time one works, another time the other. (Unlike visual studio F7 and CTRL F5, never fails!)
    source: compsci textbooks, cboard.cprogramming.com, world wide web, common sense

  13. #13
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572
    what IDE are you using? I have no such problems with JBuilder.

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  14. #14
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    To answer the original question, I'm not a huge fan of Java. I used to be, but now I'm a big fan of C#. I think if you're going to go for an advantage between loew-level and high-level programming, you should do it properly. I like C because it's very low level, but still gives you all the benefits of a modern programming language. If I'm going for a high level purpose, I like C# because it just makes so much sense to me, which is the goal of a RAD high-level language.

    But to echo others, don't hate it. You may not like it, but try to be cheerful because it's a useful skill to have. As much as I like other languages, Java has by far been the most useful to me.

  15. #15
    and the Hat of Clumsiness GanglyLamb's Avatar
    Join Date
    Oct 2002
    Location
    between photons and phonons
    Posts
    1,110

    Smile

    Well its not like i start with the wrong attitude because i really felt likie having that Java Class but after one class i was like Aaah God java is not as great as i thought....At least i´d expected it to come differently...

    Anyway i guess Java has nice things too, as im going trough my Java course i will see the advantages over C and the disadvantages...

    It´really too early to tell right now what i might like best, maybe i become a Java freak after this course...

    I was just somehow dazzled with the language yesterday...but when i read things now it actually starts making sense....except for that voidm main ( i guess that will always stay like that since its a very old habit of not using it )

    Anyway thanks because of your replies i really feel like going to the next class of Java ...
    Wow internet is usefull sometimes :s, no really you just gaveme some motivation because knowing you all do c/c++ or c# programming and still say Java is a great language well props for all of you...

    Im off to school now,

    Bye and thanks again.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. deriving classes
    By l2u in forum C++ Programming
    Replies: 12
    Last Post: 01-15-2007, 05:01 PM
  3. Replies: 3
    Last Post: 10-31-2005, 12:05 PM
  4. structure vs class
    By sana in forum C++ Programming
    Replies: 13
    Last Post: 12-02-2002, 07:18 AM