File, new project, Java+Java application, Project name just a random name, finish.
Then.. new file, Java+Java class, Class name payroll, finish..
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package javaapplication5;
/**
*
* @author computer
public class Payroll
{
public static void main(String[] args)
{
int hours = 40;
double grossPay, payRate = 25.0;
grossPay = hours * payRate;
System.out.println("Your gross pay is $" + grossPay);
}
}
Then I build it, then I run it. It does not run. I must have chosen the wrong settings or something. Asks me if I want to run it anyway, which is what I did...
then nothing happens and it just says:
run:
BUILD SUCCESSFUL (total time: 1 second)
What did I do wrong?