Unnamed
public text v1 · immutable String a = "1 2 3 4 5 6 7 6 8 9 6 10 6";
String j1 = "1 2 * 6 8 * 6";
String j2 = "1 * 6";
String j3 = "1 2 * 6 10 9";
System.out.println (a);
System.out.println (j1);
System.out.println (samePattern(a,j1)+ "\t should be: true");
System.out.println (a);
System.out.println (j2);
System.out.println (samePattern(a,j2)+ "\t should be: true");
System.out.println (a);
System.out.println (j3);
System.out.println (samePattern(a,j3)+ "\t should be: false");