title: My program is doing some weird stuff
body: <p>So here is my assignment objective:</p>
  
  <blockquote>
    <p>Suppose the weekly hours for all employees are stored in a
    two-dimensional array. Each row records an employee’s n-day work hours
    with n columns where n ≥ 1 and n ≤ 7 representing the number of days
    in a week that these employees work. For example, the table shown
    below represents an array that stores the work hours of eight
    employees for 7 days in a week. Write a program that takes in as
    inputs, the number of employees and the number of working days in a
    week. Then it takes in all the Employee information (name and number
    of daily hours worked). This program should display employees and
    their total hours worked in a week in decreasing order of the total
    hours.</p>
  </blockquote>
  
  <p>The output should look something like this:</p>
  
  <pre><code>Employee 7 worked 39 hours
  Employee 6 worked 37 hours
  Employee 0 worked 34 hours
  Employee 4 worked 32 hours
  Employee 3 worked 31 hours
  Employee 1 worked 28 hours
  Employee 5 worked 28 hours
  Employee 2 worked 24 hours
  </code></pre>
  
  <p>Also, the output should be in decreasing order of most hours worked to least...</p>
  
  <p>My code is being weird and giving me "null" in my output and it also won't show how many hours each employee worked after I put them in...</p>
  
  <p>Here is my code:</p>
  
  <pre><code>package assignment3TL;
  
  import java.util.*;
  
  public class EmployeeWorkHours {
  
      public static void main(String[] args) {
  
          Scanner turtle = new Scanner(System.in);
          String[] calender = {"S", "M", "T", "W", "Th", "F", "S"};
          System.out.println("How many Employee's do you have?: ");
          int NUMBER_OF_EMPLOYEES = turtle.nextInt();
          turtle.nextLine();
          int[][] hours;
          hours = new int[NUMBER_OF_EMPLOYEES][7];
          String[][] employee = new String[NUMBER_OF_EMPLOYEES][2];
  
          // input for Names
          for (int x = 0; x &lt; (employee.length); x++) {
              System.out.println("Name of Employee " + (x + 1) + ": ");
              String name = turtle.nextLine();
              employee[x][1] = name;
  
          }
          // input for Hours
          for (int z = 0; z &lt; hours.length; z++) {
              System.out.println("Starting from Sunday, enter the hours Employee " + (z + 1) + " has worked each day (Make sure you seperate it by spaces): ");
              for (int a = 0; a &lt; (hours[0].length); a++) {
                  hours[z][a] = turtle.nextInt();
              }
          }
          // Print everything out
          for (int i = 0; i &lt; employee.length; i++) {
              for (int z = 0; z &lt; employee[0].length; z++) {
                  System.out.println(employee[i][z] + "-");
              }
              for (int f = 0; f &lt; NUMBER_OF_EMPLOYEES; f++) {
  
                  System.out.println(" " + hours[i][f]);
  
              }
          }
          // Total hours.
          for (int s = 0; s &lt; hours[0].length; s++) {
              int counter = 0;
              for (int d = 0; d &lt; hours.length; d++) {
                  hours[d][s] += counter;
              }
              System.out.println("Employee " + (s + 1) + " worked " + counter + "   hours.");
          }
  
      }
  
  }
  </code></pre>