|
Need help with Boolean Statements?
This is the code I got from my programming book, a relatively simple demonstration of Boolean statements in Java.
public class Main {
public static void main(String[] args) {
if (salesTotal <10000)
{
if (salesClass ==1)
commissionRate = 0.02;
}
else
{
if (salesClass == 1)
commissionRate = 0.025
}
This code received, from the compiler, messages ranging from "} missing" to "Main method is missing". I don't know what to do, does anybody here know?
Last edited by dannyboi; 08-11-2012 at 01:54 AM..
|