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

[1569 byte] By [kikemellya] at [2007-10-2 10:58:40]
# 1
Its hard to tell because of the font but you have spelledprintIninstead of printlnIn other words, no capital i - does include a lower case L.
atmguya at 2007-7-13 3:26:28 > top of Java-index,Developer Tools,Java Compiler...
# 2
OMG I feel so stupid, I copied this from a course book and was sure it was and "I" and not an "L" but anyways thanks for your help. CheersMike
kikemellya at 2007-7-13 3:26:28 > top of Java-index,Developer Tools,Java Compiler...