Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2011
    Rep Power

    Default show real amount in println?

    i want to show amount of variable in println ... how can i do this?
    a,m,n read from user and i want show this form with real amount of variables.
    System.out.println("Your Input is: (a * x ^ m, n)");

    sorry it was stupid question i got my solution ... plz delete this topic. sorry again
    Last edited by HearT.Hunt3r; 10-13-2011 at 08:40 PM.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Washington, DC
    Rep Power

    Default Re: show real amount in println?

    You might want to look into the printf function: PrintStream (Java Platform SE 6)
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

Similar Threads

  1. Help with average amount formulas
    By dimesnnix in forum New To Java
    Replies: 6
    Last Post: 06-03-2011, 02:45 AM
  2. Replies: 3
    Last Post: 05-27-2010, 11:54 AM
  3. Println VS system.out.println
    By ccie007 in forum New To Java
    Replies: 2
    Last Post: 05-20-2010, 09:52 AM
  4. difference between system.out.println() & out.println()
    By wickedrahul9 in forum Advanced Java
    Replies: 5
    Last Post: 10-19-2008, 12:06 AM
  5. netbeans 6.0 not show commpunent or show blank page
    By fahimaamir in forum NetBeans
    Replies: 1
    Last Post: 01-26-2008, 07:20 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