Guest User

Untitled

a guest
Jul 19th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. public class test2
  2. {
  3. public static void main(String[]args)
  4. {
  5. String []o ={"one0", "two1","three2","one3","two4","three5","one6", "two7","three8","one9",
  6. "two10","three11","one12","two13","three14","one15", "two16","three17",};
  7.  
  8. boolean [] bitarray;
  9.  
  10. //Boolean bitarray;
  11. int count = 4;//user input
  12. int count1 = 3;
  13. int count2 = 2;
  14. int num = 0;
  15. boolean flag;
  16. bitarray = new boolean[24];
  17.  
  18. for(int w = 0; w < 4; w++)
  19. {
  20. for(int c = 0; c < o.length; c++)
  21. {
  22. do
  23. {
  24. if(true)
  25. {
  26. num++;
  27.  
  28. while(count == num)
  29. {
  30. System.out.println( o[c] + " from if 1 " + num);
  31. num = 0;
  32. flag = false;
  33.  
  34. if(count1 < count)
  35. {
  36. System.out.println( o[count1] + " ********** " + num);
  37. }
  38.  
  39. }
  40. }
  41. // while(count1 != count1);
  42. // }
  43. // }
  44. }while(count != count);
  45. }
  46. }
  47.  
  48. }
  49. }
Add Comment
Please, Sign In to add comment