Can Anyone help me with these, thx....
C:\jdk1.3.1\bin>javac StringCompare.java
StringCompare.java:4: ';' expected
public static void main (String args[]) throws IO Exception {
^
StringCompare.java:4: cannot resolve symbol
symbol : class IO
location: class StringCompare
public static void main (String args[]) throws IO Exception {
^
StringCompare.java:4: missing method body, or declare abstract
public static void main (String args[]) throws IO Exception {
*********************************************************************
import java.io.*;
public class StringCompare {
public static void main (String args[]) throws IO Exception {
String s1;
String s2;
system.out.println ("Please enter first string");
s1=KeyBoard.readint();
system.out.println ("Please enter second string");
s2=KeyBoard.readint ();
int result = s1.compareTo(s2);
if (result == 0)
System.out.println("s1 = s2");
else if (result < 0)
System.out.println("s1 < s2");
else // if (result > 0)
System.out.println("s1 > s2");
}
}