Thread: Intro to Java

Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 42
  1. #11  
    Registered Member

    Join Date
    Feb 2011
    Posts
    117
    Thanks
    0
    Thanked 76 Times in 42 Posts
    Rep Power
    158
    tl;dr but at least it isn't a half-assed tutorial. good job.
    Reply With Quote  
     

  2. #12  
    Engaged PvP 668 - Online

    Lynchy's Avatar
    Join Date
    Dec 2010
    Age
    2
    Posts
    819
    Thanks
    584
    Thanked 84 Times in 65 Posts
    Rep Power
    226
    How long did it take you to make this post..?
    Reply With Quote  
     

  3. #13  
    Follow Me @JustasMikulskis

    Imworth73m's Avatar
    Join Date
    Jun 2011
    Posts
    627
    Thanks
    30
    Thanked 108 Times in 88 Posts
    Rep Power
    132
    Good job, great for people just starting. : )

    OT: How long did it take to type?
    Reply With Quote  
     

  4. #14  
    Whatchu talkin bout willis?

    Gary's Avatar
    Join Date
    Sep 2008
    Posts
    3,757
    Thanks
    593
    Thanked 534 Times in 371 Posts
    Rep Power
    2720
    gotta admit, good job

    gamergary12345 <ps3name>
    Citifiedrain5 <xbox gamertag>
    garya1682 <skype>
    Reply With Quote  
     

  5. #15  
    Pon de Floor


    Mister Maggot's Avatar
    Join Date
    Dec 2008
    Age
    17
    Posts
    6,751
    Thanks
    3,108
    Thanked 2,563 Times in 1,425 Posts
    Rep Power
    5000
    Quote Originally Posted by The Wanderer View Post
    What the tutorial is saying is that inside a method you can define x. Obviously if you want x to always be 8196 you can do it your way, but if you want x to stand for multiple numbers you can declare x and then for each instance you can change what x equals. Correct me if I am wrong on this.
    I don't know what you're saying..? X won't be final either way and can never represent more than one number at the same time.
    Quote Originally Posted by Original View Post
    Yeah, I haven't used JFrame before, I've always used OpenGL
    I coded a boolean once
    ¯\_(ツ)_/¯ lol idk just rep me
    Reply With Quote  
     

  6. #16  
    Registered Member
    The Wanderer's Avatar
    Join Date
    Mar 2010
    Posts
    582
    Thanks
    41
    Thanked 151 Times in 71 Posts
    Rep Power
    189
    Quote Originally Posted by Mister Maggot View Post
    I don't know what you're saying..? X won't be final either way and can never represent more than one number at the same time.
    This would work?

    Code:
            int x;
            
            public void oRly() {
                x = 1986;
            }
            
            public void yaRly() {
                x = 555;
            }
    And as for those who asked how long it took me to type, it took me approximately 3-5 days to type it. I can't exactly remember as I took breaks. :P I had to convert some of of the BBC tags because I typed it originally for a SMF forum. Just a simple Ctrl+H though. Thanks for all of the good comments!

    Progress is fast,
    but tradition has class.
    Reply With Quote  
     

  7. #17  
    Gfx?

    Join Date
    Sep 2010
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    3
    Thanks for doing this, I'm watching online courses and this is helping me learn more.
    Reply With Quote  
     

  8. #18  
    Registered Member Conner_'s Avatar
    Join Date
    May 2011
    Age
    16
    Posts
    469
    Thanks
    207
    Thanked 42 Times in 35 Posts
    Rep Power
    29
    This is a very nice tutorial. I actually learned something, and I thought I had pretty much covered most of what was in it Thanks for putting this up here!

    Reply With Quote  
     

  9. #19  
    Registered Member
    Join Date
    Jun 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    good job i learned alot thank you very much.
    Reply With Quote  
     

  10. #20  
    Registered Member
    Join Date
    Nov 2007
    Age
    19
    Posts
    519
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Rep Power
    73
    Quote Originally Posted by Timati View Post
    I think that's wrong...
    Shouldn't it be like
    Code:
    int x = 8196;
    ?
    Code:
    int x = 2532;
    That is the same thing as:

    Code:
     
    int x;
    x = 2532;
    Initialization of a primitive (in this case) and object references can be initiated on different lines or on the same line, it doesn't matter.

    In simple terms, you can assign x the value of 2532 on the same line that you initialize the variable or you can do it on a different line of code it doesn't really matter unless the value is needed before it is set.
    Spoiler for Show GIFs:

    Reply With Quote  
     


Page 2 of 5 FirstFirst 1234 ... LastLast
Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. My Intro!
    By `Toys in forum The Red Carpet
    Replies: 13
    Last Post: 02-10-2011, 10:50 PM
  2. never really did a intro.. so here it is now.
    By Tobbo in forum The Red Carpet
    Replies: 1
    Last Post: 11-10-2010, 07:46 PM
  3. Intro
    By Mr Antt. in forum The Red Carpet
    Replies: 1
    Last Post: 03-19-2010, 02:34 AM
  4. Intro
    By Tafoya in forum The Red Carpet
    Replies: 0
    Last Post: 11-30-2009, 04:43 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •