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

    Default show real amount in println?

    i want to show amount of variable in println ... how can i do this?
    ex:
    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 07:40 PM.

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

    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 - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

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