Guest User

Untitled

a guest
Nov 19th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. s1<s2 & s1<s3
  2. s2<=s1 & s2<s3
  3. s3<=s1 & s3<=s2
  4.  
  5. int counter = 0;
  6. ArrayList<String> state = new ArrayList<String>();
  7. for (int i=0; i<=n; i++) {
  8. state.add(i,"s"+1));
  9. }
  10.  
  11. for (int j=1; j<=n; j++) {
  12.  
  13. for (int i=0; i<(n-1); i++) {
  14. if (i==(n-2)) {
  15. fw.write(state.get(i)+"<"+state.get(counter));
  16. }
  17. else {
  18. fw.write(state.get(i)+"<"+state.get(counter)+" & ");
  19. }
  20. }
  21. counter++;
  22. }
Add Comment
Please, Sign In to add comment