This discussion is archived
2 Replies Latest reply: Mar 13, 2007 5:10 AM by 807606 RSS

how to accept 2 strings in a class with try catch method..help!!

807606 Newbie
Currently Being Moderated
the program below will accept two strings and compare str1 and str2 if equal. this program uses functions. can any one help me with this?


import java.io.*;


public class StrCompare {
     private BufferedReader takyoin = null;
     //private BufferedReader intakyo = null;
     /**
     * @param args
     */
     
     public StrCompare(){
          takyoin = new BufferedReader(new InputStreamReader(System.in));
          //intakyo = new BufferedReader(new InputStreamReader(System.in));
     }
     
     public String UserInput(){
          
          
          
     }
     
     
     public static void main(String[] args) {
          // TODO Auto-generated method stub
          
     }

}