Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. import java.io.File;
  2. import java.util.Scanner;
  3. import java.util.ArrayList;
  4. import java.io.*;
  5. import static java.lang.System.*;
  6. import java.util.* ;
  7.  
  8. public class Test {
  9.  
  10. public static void main ( String[] args ) throws InputMismatchException {
  11.  
  12. try {
  13.  
  14.  
  15. reading();
  16.  
  17. }
  18.  
  19. catch ( Exception ex ) {
  20.  
  21. }
  22.  
  23. }
  24.  
  25. public static void reading() throws Exception {
  26.  
  27. File reader = new File("Abon.txt");
  28. Scanner fs = new Scanner(reader);
  29.  
  30. while (fs.hasNextLine()) {
  31.  
  32. int id = fs.nextInt();
  33. String Name = fs.next();
  34. String SecondName = fs.next();
  35. String ThirdName = fs.next();
  36. String City = fs.next();
  37. String Street = fs.next();
  38. String Number = fs.nextLine();
  39. String Abon = fs.next();
  40. int PriceAbon = fs.nextInt();
  41. int MinInt = fs.nextInt();
  42. int MinExt = fs.nextInt();
  43.  
  44. out.println(id + " " + Name + " " + SecondName + " " + ThirdName + " " + City + " " + Street + " " + Street );
  45.  
  46. }
  47.  
  48.  
  49.  
  50. }
  51.  
  52.  
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement