Java is killing me

Discussion in 'Software' started by pampergirl, Sep 22, 2007.

  1. pampergirl

    pampergirl Private E-2

    I am new to this Java thing and it is saying I have an error in line 36 and I cannot figure it out is there anyone out there that can help me if so I would greatly appreciate it this assignment is due yet tonite please help I am desperate.
     

    Attached Files:

  2. noahawk

    noahawk Corporal

    Looks like it may be too late for you, but I don't believe that you can use the printf function to display text in Java. You'd probably want to use System.out.println (or print) and use concatentation to combine your text w/ the values of the variables - similar to how you ask for user input
     
  3. JustAnotherDude

    JustAnotherDude Private E-2

    Hello,

    I know squat about Java, so take that into consideration...

    A quick look at some similar pages that use "printf" indicates
    1) make sure your version of Java is up to date
    2) maybe (?) change the "\n" to "%n" - apparently there can be some platform issues.

    References:
    http://www.particle.kth.se/~lindsey/JavaCourse/Book/Part1/Tech/Chapter05/formatterPrintf.html

    http://www.particle.kth.se/~lindsey/JavaCourse/Book/Part1/Java/Chapter09/scannerFile.html

    http://www.java2s.com/Code/JavaAPI/java.lang/System.out.printf.htm
    http://www.developer.com/java/other/article.php/3327721

    Good luck with it.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds