Guest User

Untitled

a guest
Jun 18th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. public class ReadFileMain {
  2.  
  3.     public static void main(String args[]) {
  4.    
  5.         ReadFile readOb = new ReadFile();
  6.        
  7.         boolean fileExist = readOb.openFile();
  8.        
  9.         if(fileExist) {
  10.             readOb.countLine();
  11.             readOb.countWord();
  12.             readOb.countChar();
  13.             readOb.closeFile();
  14.         } else {
  15.             System.out.println("That file doesn't exist.");
  16.         }
  17.    
  18.     }
  19.  
  20. }
Add Comment
Please, Sign In to add comment