Newbie compiling problems
Hello Everyone,
I am having trouble compiling a basic Java program (see below). I could do with some help troubleshooting the problem. I get these error messages when compiling.
Tma.java [20:1] cannot resolve symbol
symbol : method printIn (java.lang.String)
location: class java.io.PrintStream
System.out.printIn ("Input a number");
^
Tma.java [24:1] cannot resolve symbol
symbol : method printIn (java.lang.String)
location: class java.io.PrintStream
System.out.printIn ("Input another whole number");
^
Tma.java [30:1] cannot resolve symbol
symbol : method printIn (java.lang.String)
location: class java.io.PrintStream
System.out.printIn ("Total was" + sum);
^
3 errors
Errors compiling Tma.
The program is:
/* a program which reads in two integers and subtracts
the first from the second and then displays the results*/
import java.io.*;
class Tma
{
public static void main(String[] args)
throws IOException
{
int num1,num2,sum; //variable declerations
/* program statements here */
System.out.printIn ("Input a number");
num1 = Course_io.readInt();
System.out.printIn ("Input another whole number");
num2 = Course_io.readInt();
sum = num1 - num2;
System.out.printIn ("Total was" + sum);
}
}
Any ideas why I am getting these errors and how to correct them. BTW I am using Sun ONE studio 4 update 1.
Thanks
MIke

