title: How do I enter data from user input into a 2D array in Java?
body: <p>I have a 2D array that needs it's values to be changed based on user input.</p>
  <pre><code>private static double nursesArray[][] = {
          {2020, 0, 0, 0, 0, 0, 0, 0, 0, 0},
          {2021, 0, 0, 0, 0, 0, 0, 0, 0, 0},
          {2022, 0, 0, 0, 0, 0, 0, 0, 0, 0},
          {2023, 0, 0, 0, 0, 0, 0, 0, 0, 0},
          {2024, 0, 0, 0, 0, 0, 0, 0, 0, 0}
  };
  </code></pre>
  <p>The program revolves around it asking the user for the base wage in the year 2020 for the second column (index 1). The program will then ask the user to enter the percent differences in each of the years below, going down each row in that same column. This process needs to be iterated in each of the columns all the way to the end.</p>
  <p>The way I have the rest of my code set up is that it uses the array as an argument for the method.</p>
  <pre><code>public class nursesUnion {
  
      private static double nursesArray[][] = {
              {2020, 0, 0, 0, 0, 0, 0, 0, 0, 0},
              {2021, 0, 0, 0, 0, 0, 0, 0, 0, 0},
              {2022, 0, 0, 0, 0, 0, 0, 0, 0, 0},
              {2023, 0, 0, 0, 0, 0, 0, 0, 0, 0},
              {2024, 0, 0, 0, 0, 0, 0, 0, 0, 0}
      };
  
      public static void dataEntry(double arr[][]) {
          Scanner inp = new Scanner(System.in);
      }
  ...
  </code></pre>
  <p>I really have no idea where to begin for this. Java is a new language for me and I haven't fully wrapped my head around it yet.</p>