title: Java, method, cant move code from main method to another method
body: <p>I need to produce a BogOff class with a taxTables method that initialises an array of integers with increasing incomes, at least one in each of the income ranges shown in the table above, and uses a TaxChart object to produce a thin bar chart and the corresponding table.</p>
  
  <p>Basically, I've done all of this, and it's working, however for the life of me, I cannot move it into a method named taxTable, I know this seems ridiculously basic considering what I have already written.</p>
  
  <pre><code>public class BogOff {
  
  
  
  public static void main (String[] args) {
  
      int[] Values = { 25, 50, 100, 125, 150, 175, 200, 225, 250, 275, 300,
              325, 350, 375, 400, 425, 450, 500, 550 };
      /*initialized my array of integers to used as the values of income 
       I will input*/
  
      TaxChart graph = new TaxChart(Values); //calling my graph
      graph.Initialize();
      graph.Draw();
      graph.PrintTable();
      //my graph uses the 2 methods, Initialize and Draw from TaxChart to 
      //render the graph PrintTable is used to output my income, tax and 
      //income remaining
      }
  
  
  }
  </code></pre>