static public int m1(char[] c, int n) { String str = new String(c); System.out.println("Parameters - " + str + " " + n); int state = 0; for(int i =0; i < c.length; i++) { if(c[i] == '[') state = 1; else if (state == 1 & c[i] == '{') state = 2; else if (state == 2 & c[i] == '<') state = 3; else if (state == 3 & c[i] == '*') { state = 4; if(c.length == 15) { state = state + n; } } } return 1; }