Help with Java homework! Intro stuff
public class Account
{
public static void main(String[] args)
{
private double balance; <----- I keep getting an error here saying "Illegal start of expression" doesn't matter what line i put here
//set balanace to $0.00
public Account()
{
balance = 0;
}
//Credit
public void credit (double amount)
{
balance = balance+amount;
}
//Withdraw
public void withdraw (double amount)
{
balance = balance - amount;
}
//Balance inquiry
public double getBalance()
{
return balance;
}
}
}_<---- and an error here "class, interface, or enum expected" _