Advertisement
Guest User

Untitled

a guest
Apr 21st, 2014
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. 1 piyush pankaj 04mathematic10physics 20biology 45
  2. 2 vanitha reddy 03physics 30chemistry 60
  3. 3 deepesh shetty 05chemistry 5 biology 45
  4. 4 jane dsouja 01geography 30chemistry 60biology 45
  5. 5 ramadasa hegde 02chemistry 80biology 70
  6.  
  7. 05 ID PIC 99.
  8. 05 FNAME PIC X(10).
  9. 05 LNAME PIC X(10).
  10. 05 NO_SUB PIC X(2).
  11. 05 SUBJECTS OCCURS 0 TO 10 TIMES
  12. DEPENDING ON NO_SUB
  13. 10 SUB_NAME PIC X(10).
  14. 10 MARKS PIC 99.
  15.  
  16. 1 piyush pankaj 04mathematic10
  17. 1 piyush pankaj 04physics 20
  18. 1 piyush pankaj 04biology 70
  19. 2 vanitha reddy 03physics 30
  20. 2 vanitha reddy 03chemistry 60
  21. 3 deepesh shetty 05chemistry 5
  22. 3 deepesh shetty 05biology 45
  23. 4 jane dsouja 01geography 30
  24. 4 jane dsouja 01chemistry 60
  25. 4 jane dsouja 01biology 70
  26. 5 ramadasa hegde 02chemistry 80
  27. 5 ramadasa hegde 02biology 70
  28.  
  29. 05 ID PIC 99.
  30. 05 FNAME PIC X(10).
  31. 05 LNAME PIC X(10).
  32. 05 NO_SUB PIC X(2).
  33. 05 SUBJECTS OCCURS 0 TO 10 TIMES
  34. DEPENDING ON NO_SUB
  35. 10 SUB_NAME PIC X(10).
  36. 10 MARKS PIC 99.
  37.  
  38. Byte 1 for a length of 24 + Byte 25 for a length of 12
  39. Byte 1 for a length of 24 + Byte 37 for a length of 12
  40.  
  41. 5 ramadasa hegde 02chemistry 80
  42. 5 ramadasa hegde 02biology 70
  43.  
  44. String id = inputLine.substr(1,2);
  45. String firstName = inputLine.substr(3,12);
  46. String lastName = inputLine.substr(13,22);
  47. String numberOfEntriesStr = inputLine.substr(23,24);
  48.  
  49. int numberOfEntries = Integer.parseInt(numberOfEntriesStr);
  50.  
  51. for (int i = 0; i < numberOfEntries) {
  52. ...
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement