Nó báo lỗi là nhapDulieu is never close, chỉ là nhập dữ liệu đơn giản từ bàn phím
int sotien;
String ten;
Scanner nhapDuLieu = new Scanner(System.in);
System.out.print("Nhập Tên: ");
ten = nhapDuLieu.nextLine();
System.out.print("Nhập Số tiền : ");
sotien = nhapDuLieu.nextInt();
System.out.println("\nTên Vừa Nhập:" + ten+"\n");
System.out.println("Số Tiền Vừa Nhập: " + sotien);

83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?