Hi,
I have written the following code.I need to convert it to GUI.
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
public class CompString{
public static void main(String[] args) {
System.out.println("Enter two strings:");
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Please enter first string:");
String str1 = bf.readLine();
System.out.println("Please enter second string:");
String str2 = bf.readLine();
if (string2.compareTo(string1) > 0)
System.out.println(str2 + " is greater than " + str1);
else
System.out.println(str1 + " is greater than " + str2);
}
}