View Single Post
Join Date: May 2007
Posts: 4,346
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 498
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: how to use scanner correctly

 
0
  #5
Sep 25th, 2008
  1. public class Program1 {
  2.  
  3. Scanner scanner = null;
  4.  
  5. public Program1(){
  6. try {
  7. scanner = new Scanner(new File("t.txt"));
  8. } catch (FileNotFoundException fe){
  9. fe.printStackTrace();
  10. }
  11. }
  12.  
  13. public static void main(String[] args) {
  14.  
  15. }
  16. }
Reply With Quote