here's my code so far:
import java.io.*;
import java.util.*;
import java.awt.*;
public class BabyNames {
public static void main (String [] args) throws FileNotFoundException {
Scanner console = new Scanner(System.in);
Scanner input = new Scanner(new File("names.txt"));
while (input.hasNext()) {
String names = input.nextLine();
System.out.println(names);
here's a sample of lists of names in names.txt
the numbers are the popularity rating of the name each decade (1950 - 2000)
Muze 100 0 0 230 320
Eryzle0 10 20 30 10
Rica122334 45 45
now my program is printing all of them. what i want is to type a name(for example eryzle) and it will print only eryzle along with the stats.
im new to java so i would appreciate to use simple words or make a code as a suggestion.ty