Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s1<s2 & s1<s3
- s2<=s1 & s2<s3
- s3<=s1 & s3<=s2
- int counter = 0;
- ArrayList<String> state = new ArrayList<String>();
- for (int i=0; i<=n; i++) {
- state.add(i,"s"+1));
- }
- for (int j=1; j<=n; j++) {
- for (int i=0; i<(n-1); i++) {
- if (i==(n-2)) {
- fw.write(state.get(i)+"<"+state.get(counter));
- }
- else {
- fw.write(state.get(i)+"<"+state.get(counter)+" & ");
- }
- }
- counter++;
- }
Add Comment
Please, Sign In to add comment