Mình mới học Java,xin ae chỉ giáo 
Mình có đoạn code này để so sánh 2 string với nhau
import java.util.Scanner;
public class DOTO {
public static void main(String[]agrs){
String result ="battlefurry";
String x="";
Scanner in =new Scanner(System.in);
do{
System.out.println("What is one of the core items of PA");
x=in.nextLine();
System.out.println(result.equalsIgnoreCase(x));
in.close();
}while (result.equalsIgnoreCase(x)==true);
}
}
Khi chạy thì vòng lăp do-while ko chạy được.Xin ae chỉ chỉ chỉnh sửa hộ mình và chỉ ra hộ mình lỗi sai ở chỗ nào nhá
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?