title: How to use the \n in java properly
body: <p>Whenever I compile and run my code, the output becomes a big mess and I would like if someone could show me how to make my output look good.</p>
  
  <pre><code>import java.util.*;
  public class JavaApplication3 {
      static Scanner sc = new Scanner(System.in);
      public static void main(String[] args) {
          int NumPerHamper;
          int NumHampersMade;
          int NumItemsLeftOver;
          int NumAvalable;
          double ValuePerHamper;
          double ItemCost;
          double ValueAllotedHamper;
          double ValueItemsLeftOver;
          String name="";
          Date TheDate = new Date();
  
          System.out.println("Enter the number of avaliable mac and cheese");
          NumAvalable = sc.nextInt();
  
          System.out.println("Enter the number of items per hamper");
          NumPerHamper = sc.nextInt();
  
          System.out.println("Price Of Item");
          ItemCost = sc.nextDouble();
  
          NumHampersMade = NumAvalable / NumPerHamper;
          NumItemsLeftOver = NumAvalable % NumPerHamper;
          ValuePerHamper = NumPerHamper * ItemCost;
          ValueAllotedHamper = ValuePerHamper * NumHampersMade;
          ValueItemsLeftOver = NumItemsLeftOver * ItemCost;
          System.out.printf("\n");
          System.out.printf(TheDate + "\n");
          System.out.printf("Amount of Hampers Made: ", NumHampersMade,"\n");
          System.out.printf("The Items Left Over is: ", NumItemsLeftOver,"\n");
          System.out.printf("Each Value Of the Hampers are: $%.2f.", ValuePerHamper,"\n");
          System.out.printf("The Price Of All The Hampers Is: $%.2f.", ValueAllotedHamper,"\n");
          System.out.printf("The Value Of Mac And Cheese Is: $%.2f.", ValueItemsLeftOver,"\n");
      }
  }
  </code></pre>