Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to make user input bold

843785Sep 7 2008 — edited Sep 7 2008
how to make user input bold


import java.util.Scanner;

public class magic 
{

    public static void main(String[] args) 
    {
            int userNumber;
            Scanner keyboard = new Scanner (System.in); 
            Scanner sc=new Scanner(System.in);
                    
           
  System.out.println("Reorder the rest of the digits and type them in here:"); 
  userNumber = keyboard.nextInt()        
      }
    

    
}
the number the user enters for userNumber will be entered in bold.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 5 2008
Added on Sep 7 2008
1 comment
1,937 views