I'm working on a program for school and the code I have so far is:
public class Assign6{
public static void main(String[] args){
int bill = (int) (Double.parseDouble(args[0])*100);
Change aSmall = new Change(bill);
System.out.println("# of Fives: " + aSmall.numOfCoins(500) );
System.out.println("# of Ones: " + aSmall.numOfCoins(100) );
System.out.println("# of Q: " + aSmall.numOfCoins(25) );
System.out.println("# of D: " + aSmall.numOfCoins(10) );
System.out.println("# of N: " + aSmall.numOfCoins(5) );
System.out.println("# of P: " + aSmall.numOfCoins(1) );
}
}
I don't notice anything wrong with the code but the error message I get is:
C:\Java>javac Assign6.java
Assign6.java:5: cannot find symbol
symbol : class Change
location: class Assign6
Change aSmall = new Change(bill);
^
Assign6.java:5: cannot find symbol
symbol : class Change
location: class Assign6
Change aSmall = new Change(bill);
I can't figure out what the program does not like I seem to have problems like this in some of my other programs where the compiler doesn't recognize reserved words such as " iquote()" Could the problem be the compiler can't find the reserved words much like you have to set the PATH variable? This might all be a stupid question but I'm not all that familiar with Java in the first place.