Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. multiple variable:
  2. 3
  3. Context Change (next in array)
  4. 1
  5. Context Change (next in array)
  6. 2
  7.  
  8. Repeat variable:
  9. TESTA
  10. Context change (next in array)
  11. TESTB
  12. Context change (next in array)
  13. TESTC
  14.  
  15. for(int j=0; j <= multiple.length - 1; j++) {
  16. for(int i=0; i < Integer.parseInt(multiple[i]); i++) {
  17. result.addValue(Repeat[i]);
  18. }
  19. }
  20.  
  21. TESTA
  22. TESTA
  23. TESTA
  24. Context change (next in array)
  25. TESTB
  26. Context change (next in array)
  27. TESTC
  28. TESTC
  29.  
  30. for(int j = 0; j <= multiple.length - 1; j++) {
  31. for(int i = 0; i < Integer.parseInt(multiple[j]); i++) {
  32. result.addValue(Repeat[i]);
  33. }
  34. }
  35.  
  36. int[][] arr = {{23, 45, 123}, {545}, {124,543}};
  37.  
  38. for (int i = 0; i < arr.length; i++) {
  39. System.out.println("-------" + i + "-------");
  40. for (int j = 0; j < arr[i].length; j++) {
  41. System.out.println(arr[i][j]);
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement