Does any one know why my nextLine() not working after a for loop? It's always skip the nextLine() and go direct to the if statement. See below for more details
int[] a = new int[3]
for(int i=0; i<3;i++) { a[i] = nextInt(); }
String b = nextLine();
if(b == "go") { ....... } else { ..... }