Results 1 to 3 of 3
  1. #1
    fuznuts is offline Member
    Join Date
    Mar 2012
    Posts
    2
    Rep Power
    0

    Default Nublet with java...lookin for a jedi master to oversee my training...

    I am currently doing some tutorials on java from Youtube. The guy is amazing at teaching it, but I am hoping some people can check to ensure my explanations after the code are correct. I provide explanations throughout the code for myself so I can look at it and be reminded when I review...

    My explanations are in the format //___________________ // after the code.

    Please let me know if I have f'd anything up ;)

    and thanks in advance!

    Tutorial 5: http://www.youtube.com/watch?v=gtQJX...feature=relmfu

    class apples{
    public static void main(String args[]){
    double pussy; //Declaring a variable//
    pussy = 69.3; //Assigning a Value//

    System.out.print("I want ");
    System.out.print(dogs);
    System.out.println(" movies"); //tells program to move next print one line lower.//
    System.out.print("cats");
    }
    }

    //////////////////////////////////////////////////////////////////////////////////////////

    Tutorial 6: http://www.youtube.com/watch?v=5Ddac...feature=relmfu

    import java.util.Scanner; //Java only uses what it needs because it is efficient. we tell it what it needs//

    class apples{
    public static void main(String args[]){
    Scanner justin = new Scanner(System.in); //Scanner Var = new Scanner (whatever user inputed)//
    System.out.println(justin.nextLine()); //print out the justin scanner variable//
    }
    }

    //////////////////////////////////////////////////////////////////////////////////////////

    Tutorial 7: http://www.youtube.com/watch?v=ANuuS...feature=relmfu

    import java.util.Scanner; //Import for use--java is efficient, so it only used utils needed, when told they are needed//

    class apples{ //setting class//
    public static void main(String args[]){
    Scanner justin = new Scanner(System.in); //New variable "justin" = to system input//
    double fnum, snum, answer; //New variables for first number, second number and answer//
    System.out.println("Enter first num: "); //prompt with output = "Enter first num: " for var fnum//
    fnum = justin.nextDouble(); //fnum = justin(whatever is keylogged in response to previous line, then move to next Double)//
    System.out.println("Enter second num: "); //Prompt with output = "Enter second num: " for var snum//
    snum = justin.nextDouble(); //snum = justin(whatever was keylogged in response to previous line, then move to next Double) *there is no Double here*//
    answer = fnum + snum; //self-explanatory//
    System.out.println(answer); //print output with var answer//
    }
    }
    Last edited by fuznuts; 03-09-2012 at 12:45 PM. Reason: Removed sexually suggestive code

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is online now Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,424
    Rep Power
    20

    Default Re: Nublet with java...lookin for a jedi master to oversee my training...

    Those sexually suggestive variable names are unwarranted, and the code block has been removed. I don't care what tutorials you're following, it's your responsibility to maintain the decorum of these forums.

    Oracle has a good set of tutorials that don't offend the senses: The Java™ Tutorials

    Also, browse around the forum FAQs and learn how to post code correctly, with code tags that retain its readability.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    fuznuts is offline Member
    Join Date
    Mar 2012
    Posts
    2
    Rep Power
    0

    Default Re: Nublet with java...lookin for a jedi master to oversee my training...

    My apologies sir,

    It was not my intention to offend. I actually forgot they were in there because I typed them last night.
    I simply do that sometimes when I am getting bored to liven it up and make myself laugh when the code actually pops up. I know...immature. But god knows it makes me smile when the code goes through and prints out literally whatever I tell it to say (I guess that is the beautiful thing about computers :P)

    But regardless I will edit the post and put something less offensive and you will have no more problems from this guy. I am just glad to live in a time when I can learn from gurus on a place like this...and do not want to disrespect anyone in the process.

Similar Threads

  1. Master Detail Form In Java
    By anilmohan in forum Advanced Java
    Replies: 0
    Last Post: 11-19-2010, 11:04 AM
  2. Master Handler Java error
    By Dradden in forum New To Java
    Replies: 4
    Last Post: 09-12-2010, 08:06 PM
  3. The master list of self teaching java
    By fresh83 in forum New To Java
    Replies: 2
    Last Post: 12-27-2009, 01:09 AM
  4. JAVA Complete Master Training CD Library CBT
    By edubased in forum Reviews / Advertising
    Replies: 0
    Last Post: 12-07-2009, 02:32 PM
  5. If you are lookin for a Java related job
    By SeanTech23 in forum Jobs Wanted
    Replies: 5
    Last Post: 07-01-2009, 04:24 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
  •