title: How to set up a java program in IDEone
body: <p>i am pretty new to coding and to date have only been using bluej to code java. I want to switch to using IDEone to code so i can switch from the computers i use at school in my programming class to my home computer without having to copy the code from one to the other using a usb or something. The problem is i do not know how to write a program in IDEone. I have a couple of programs that i have made in bluej that compile and execute fine but when  pasted into IDEone to see if it would work and i keep getting errors. Here is an example of one of the codes </p>
  
  <pre><code>import java.util.Scanner;
  public class IncomeTaxCalculator{
  
      public static void main(String [] args){
  
          // Constants
          final double TAX_RATE = 0.20;
          final double STANDARD_DEDUCTION = 10000.0;
          final double DEPENDENT_DEDUCTION = 2000.0;
  
          Scanner reader = new Scanner(System.in);
  
          double grossIncome;
          int numDependents;
          double taxableIncome;
          double incomeTax;
  
          // Request the inputs
         System.out.print("Enter the gross income: ");
         grossIncome = reader.nextDouble();
         System.out.print("Enter the number of dependents: ");
         numDependents = reader.nextInt();
  
         //Compute the income tax
         taxableIncome = grossIncome - STANDARD_DEDUCTION - DEPENDENT_DEDUCTION * numDependents;
         incomeTax = taxableIncome * TAX_RATE;
  
         //Display the income tax
         System.out.println("The income TAX IS $" + incomeTax);
      }
  }
  </code></pre>
  
  <p>in IDEone this gives me the error:  Main.java:3: error: class IncomeTaxCalculator is public, should be declared in a file named IncomeTaxCalculator.java
  public class IncomeTaxCalculator{</p>
  
  <p>What is the appropriate way for me to start a program in IDEone? how would i change this program so it will compile corectly</p>