Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit d8c9671

Browse files
authored
update for more features and new help text
NEW STUFF IS AT BOTTOM
1 parent 4bb5a01 commit d8c9671

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

usacotools.java

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,33 @@ public static Set<Integer> sclone(Set<Integer> k) {
171171
}
172172
public static Set<Long> sclonel(Set<Long> k) {
173173
return (new HashSet<Long>(k));
174+
}
175+
public static boolean smartequals(int[] a,int[] b) {
176+
if(a.length!=b.length) {
177+
return false;
178+
}
179+
for(int i=0;i<a.length;i++) {
180+
if(a[i]!=b[i]) {
181+
return false;
182+
}
183+
}
184+
return true;
185+
}
186+
public static boolean smartequals2D(int[][] a,int[][] b) {
187+
if(a.length!=b.length) {
188+
return false;
189+
}
190+
for(int i=0;i<a.length;i++) {
191+
if(smartequals(a[i],b[i])) {
192+
return false;
193+
}
194+
}
195+
return true;
174196
}
175197
public static void main(String[] args) throws Exception{
176198
System.out.println("Running demo");
177199
Scanner sc=getsysscan();
178-
print("Welcome to the demo\nYou have many choices \n 1} Run help \n2} Check for a update \n3}Run demo to see features");
200+
print("Welcome to the demo\nYou have many choices \n 1} Run help \n2} Check for a update \n3}Run demo to see features\n By the way the newest features are always at the bottom!!!!!");
179201
print(">","");
180202
try {
181203
int val=sc.nextInt();
@@ -184,5 +206,6 @@ public static void main(String[] args) throws Exception{
184206

185207
}
186208
}
209+
187210

188211
}

0 commit comments

Comments
 (0)