Results 1 to 6 of 6
  1. #1
    coding is offline Member
    Join Date
    Jan 2011
    Posts
    40
    Rep Power
    0

    Default What do these lines mean?

    double hours = Convert.toDouble
    What does the double mean? What does the convert to double mean
    SimpleIO.prompt("What is your age? ");
    String userName = SimpleIO.readLine();

    Does that specifially tell that line to show up to ask and then show it back. What if it was back to back like?
    SimpleIO.prompt("What is your age? ");
    String userName = SimpleIO.readLine();
    SimpleIO.prompt("Do you have a job? ");
    String userName = SimpleIO.readLine();
    Will it go one by one?

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

    Default

    Your question is a bit out of context - the Objects references in the code you posted are not part of the standard java SE package. I can speculate as to what they do and try to answer all your questions, but feel pointing you to the java tutorials would be time better spent which, if you invest the time, might answer your questions more thoroughly (and then some).
    The Java™ Tutorials

  3. #3
    coding is offline Member
    Join Date
    Jan 2011
    Posts
    40
    Rep Power
    0

    Default

    Thanks, but I don't really have the time to read and analyze. I'm a fast learner and if someone could just briefly explain it would help.

  4. #4
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

    Default

    Well I'll just be blunt and get straight to the point...
    but I don't really have the time to read and analyze.
    ...if you don't have time to learn, I don't have time to teach.

  5. #5
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    If you don't know something as basic as what double means, Id suggest you really take a little bit of time and scan the tutorials, if you are indeed a quick learner, a quick scan should help you understand a decent amount of what the tutorials explain.

  6. #6
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,788
    Rep Power
    7

    Default

    Quote Originally Posted by coding View Post
    Thanks, but I don't really have the time to read and analyze. I'm a fast learner and if someone could just briefly explain it would help.
    OK

    So there is a whole bunch of information on the net and in books which you cannot be bothered to read. Instead you want someone here to replicate that information just for you. Bite me! Also if you cannot be bothered to read what is already out there then presumably you cannot be bothered to read what anyone types here either.

Similar Threads

  1. SAX parsing new lines
    By fedekun in forum XML
    Replies: 0
    Last Post: 12-29-2010, 08:30 PM
  2. add a space after 10 lines?
    By ukemasta in forum New To Java
    Replies: 10
    Last Post: 01-20-2010, 12:12 PM
  3. Help explain the FOR lines please
    By hydride in forum New To Java
    Replies: 2
    Last Post: 01-19-2010, 11:52 PM
  4. Anyway to fix the lines so they dun shift?
    By PeterFeng in forum New To Java
    Replies: 0
    Last Post: 01-14-2009, 10:26 AM
  5. Random Lines
    By Urgle in forum New To Java
    Replies: 29
    Last Post: 11-12-2008, 03:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •