import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String sname;
int i,j=0;
int testcases = sc.nextInt();
for (i = 0; i <testcases; i++) {
sname=sc.next();
int slength = sname.length()/2;
while (j<slength) {
System.out.println(sname.charAt(j));
j=j+2;
}
}
}
}
Can someone help me with the error. I am getting wrong answer