I am new to Java and can't figure out how to format my code like this: Font “Courier New” Font size “9” Bold
I am trying to format the text of the whole paragraph. I would really appreciate the help. Thanks in advance!
Below is my code:
public class H_1
{
//--------------------------------------------------------------------
// main
//--------------------------------------------------------------------
public static void main (String[] args)
{
Graphics
// Declare variables
// int someInt;
// double someReal;
// String someString;
Scanner keyboard = new Scanner(System.in); // Connect to keyboard
// Show application header
System.out.println("Welcome to my Application!");
System.out.println("--------------------------\n");
// Display output
System.out.println("I'm singing in the rain");
System.out.println("Just singing in the rain");
System.out.println("What a glorious feelin'");
System.out.println("I'm happy again \n");
System.out.println("I'm laughing at clouds");
System.out.println("So dark up above");
System.out.println("The sun's in my heart");
System.out.println("And I'm ready for love \n");
System.out.println("I walk down the lane");
System.out.println("With a happy refrain");
System.out.println("Just singin',");
System.out.println("Singin' in the rain");
// keyboard.nextInt() reads token from keyboard and converts to whole number
// keyboard.nextDouble() reads token from keyboard and converts to real number
// keyboard.next() reads token from keyboard
// keyboard.nextLine() reads line from keyboard through end-of-line character
// Close keyboard
keyboard.close();
// Show application close
System.out.println("\nEnd of my Application");
}
}