Advertisement
Guest User

yes

a guest
Apr 3rd, 2017
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. import java.util.*;
  2. import java.io.*;
  3. import java.text.*;
  4.  
  5. public class FinalProject{
  6. public static void main(String[] args) throws IOException{
  7. long startTime = System.currentTimeMillis();
  8. long stopTime;
  9. long duration;
  10. Scanner sc = new Scanner(System.in);
  11. System.out.println("Enter your username: ");
  12. String userName = sc.next();
  13. System.out.println("Enter your password: ");
  14. String password = sc.next();
  15. BufferedReader br = new BufferedReader(new FileReader(new File("UsersInfo_101.txt")));
  16. String strline;
  17. int count = 0; count++;
  18. while((strline = br.readLine()) != null) {
  19.  
  20. }
  21.  
  22.  
  23. stopTime = System.currentTimeMillis();
  24. duration = stopTime-startTime;
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement