Skip to content

Activity 11: File/Input Output

Provided Files

Documentation

Question 11

int count = 0;
while (count < 1) {
    String tid = in.next();
    String type = in.next();
    String title = in.next();
    if (tid.equals("6723592")) {
        System.out.println(tid + " is a " + type + " named " + title);
        count++;
    }
    in.nextLine();
}