Results 1 to 8 of 8
  1. #1
    Robot Universe Owner
    Creator of DarkFrost
    demon450's Avatar
    Join Date
    Apr 2010
    Location
    New York
    Posts
    2,703
    Points
    6,190
         User Info     Contact     Gamer ID
    Join Date
    Apr 2010
    Location
    New York
    Posts
    2,703
    Points
    6,190
    Gamer IDs

    Gamertag: Medius450 PSN ID: Medius1337

    Contact info:

    Youtube Channel: http://www.youtube.com/user/Roceso1337

    Default Java and Referencing

    When I learned C++ before Java, that whole reference/no pointers but similar idea blew my mind, but with the write examples and explanations it can be easy to understand.
    We all know that in C++ you can use the & to make something you pass in to a function pass by reference, or to get an address of a spot in the memory, or * to get its value. Well incase you didn't notice, in Java we can't do that. Fuck you Java. BUT, they did compensate for us and give us passing by reference as a default way of passing variables into methods.
    If you don't know what an object is, here is a quick definition of two things that might help you understand data types/classes (in Java).
    Primitive Data Types: char, byte, short, int, long, double, float, boolean.
    Objects: Data types that arent primitive.
    If you pass in a primitive into a method, or set int x = int y, then you will just get the values, but with objects, you use their addresses, so they would share the same location in memory, instead of copying, and the same thing works with passing in variables into a method.
    Examples:
    Code:
    public void newMethod(int x)
    {
    int y=x;
    y=2;
    }
    After the end of this function, x will not be 2, but y will, because x was copied.
    BUT if you pass in an object and change its data member:
    Code:
    public void newMethod(newObj x)
    {
    newObj y=x;
    y.setMemberVal(2);//public void setMemberVal(int newVal) { member=newVal; }
    }
    After this function, the member "member" will be two, as y and x share the same place in the memory, if you edit one, you edit the other.
    This only works with objects, not primitives.
    BUT Java does give us an object version of each of the primitives, just change the first letter to a capital. (WOO)
    Happy Programming.

    0 Not allowed! Not allowed!
    Check out Darkfrost
    Check out Robot Universe






  2. #2
    Josh's Avatar

    Badge

    Join Date
    Dec 2009
    Location
    Florida .
    Posts
    10,473
    Points
    11,216
         User Info     Contact     Gamer ID
    Join Date
    Dec 2009
    Location
    Florida .
    Posts
    10,473
    Points
    11,216

    Default Java and Referencing

    I've been wanting to learn how to program for a while .

    0 Not allowed! Not allowed!
    Collabo with my boi Artemis :3



  3. #3
    Bad Company
    RED 58's Avatar

    Badge

    Join Date
    Jan 2012
    Location
    Goober's Coder CP
    Posts
    6,918
    Points
    9,658
         User Info     Contact     Gamer ID
    Join Date
    Jan 2012
    Location
    Goober's Coder CP
    Posts
    6,918
    Points
    9,658

    Default

    Quote Originally Posted by Slave View Post
    I've been wanting to learn how to program for a while .
    me too dude, but school and everything keeps getting in my way

    0 Not allowed! Not allowed!



    Quote Originally Posted by Iced View Post
    Red 58 = Swoot (Reincarnated)
    Quote Originally Posted by GOOBER View Post
    Terr0r you need a Gecko. Lets go to the Pet store and buy one
    Quote Originally Posted by ABlackGuy View Post
    He may not have a soul but he still has a brain. Unlike Russ who has neither.

  4. #4
    -.-. ..- -. - Equinox's Avatar
    Join Date
    Feb 2012
    Posts
    3,229
    Points
    1,473
         User Info     Contact     Gamer ID
    Join Date
    Feb 2012
    Posts
    3,229
    Points
    1,473

    Default

    Quote Originally Posted by RED 58 View Post
    me too dude, but school and everything keeps getting in my way
    Take a programming class? if your school provides that.

    0 Not allowed! Not allowed!

  5. #5
    Banned
    Join Date
    Oct 2011
    Posts
    863
    Points
    1,141
         User Info     Contact     Gamer ID
    Join Date
    Oct 2011
    Posts
    863
    Points
    1,141
    Gamer IDs

    Steam ID: buttholemonger

    Contact info:

    Youtube Channel: youtube.com/triixsoldier

    Default

    Quote Originally Posted by IAmEquinox View Post
    Take a programming class? if your school provides that.
    Most around my area offer something along the lines of programming. Ask your computer teacher.

    0 Not allowed! Not allowed!

  6. #6
    Robot Universe Owner
    Creator of DarkFrost
    demon450's Avatar
    Join Date
    Apr 2010
    Location
    New York
    Posts
    2,703
    Points
    6,190
         User Info     Contact     Gamer ID
    Join Date
    Apr 2010
    Location
    New York
    Posts
    2,703
    Points
    6,190
    Gamer IDs

    Gamertag: Medius450 PSN ID: Medius1337

    Contact info:

    Youtube Channel: http://www.youtube.com/user/Roceso1337

    Default

    Thanks for reading guys, but this isn't the place to start, look up a hello world then learn stuff in this order:

    basic vocab
    i/o (input output)
    the primitive data types/variables
    conditionals (ifs)
    loops (for, while, do while)
    basic/standard libraries of the language (like in java, the math library, in C++ the string library as examples)
    Strings
    arrays (works hand in hand with loops)
    vectors (in java also array lists)
    functions (called methods in java)
    pointers (if c++)
    OOP
    include files (if c++)
    gui and events (if in java)
    Threading
    Files
    sockets

    i believe that covers it all until you know how to teach yourself very well

    0 Not allowed! Not allowed!
    Check out Darkfrost
    Check out Robot Universe






  7. #7
    Bad Company
    RED 58's Avatar

    Badge

    Join Date
    Jan 2012
    Location
    Goober's Coder CP
    Posts
    6,918
    Points
    9,658
         User Info     Contact     Gamer ID
    Join Date
    Jan 2012
    Location
    Goober's Coder CP
    Posts
    6,918
    Points
    9,658

    Default

    Quote Originally Posted by IAmEquinox View Post
    Take a programming class? if your school provides that.
    nope they dont

    0 Not allowed! Not allowed!



    Quote Originally Posted by Iced View Post
    Red 58 = Swoot (Reincarnated)
    Quote Originally Posted by GOOBER View Post
    Terr0r you need a Gecko. Lets go to the Pet store and buy one
    Quote Originally Posted by ABlackGuy View Post
    He may not have a soul but he still has a brain. Unlike Russ who has neither.

  8. #8
    Desu Development
    Pomf pomf :3
    Fuck Sky's Avatar
    Join Date
    Sep 2013
    Location
    WOW ANIME MAN WOW
    Posts
    1,137
    Points
    1,687
         User Info     Contact     Gamer ID
    Join Date
    Sep 2013
    Location
    WOW ANIME MAN WOW
    Posts
    1,137
    Points
    1,687
    Gamer IDs

    Gamertag: Hexpresso PSN ID: WideDongWeary Steam ID: twitchhexpresso

    Contact info:

    Youtube Channel: http://www.youtube.com/ Kik Username: Wownicehack

    Default

    Quote Originally Posted by demon450 View Post
    Thanks for reading guys, but this isn't the place to start, look up a hello world then learn stuff in this order:

    basic vocab
    i/o (input output)
    the primitive data types/variables
    conditionals (ifs)
    loops (for, while, do while)
    basic/standard libraries of the language (like in java, the math library, in C++ the string library as examples)
    Strings
    arrays (works hand in hand with loops)
    vectors (in java also array lists)
    functions (called methods in java)
    pointers (if c++)
    OOP
    include files (if c++)
    gui and events (if in java)
    Threading
    Files
    sockets

    i believe that covers it all until you know how to teach yourself very well

    I don't like you much, and I know this is a gravedig(I don't fucking care), but honestly, I agree with this entirely. Literally makes me hate you a little less.

    0 Not allowed! Not allowed!
    geadszf1231qewrg

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 11:52 PM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.