public class EX6_1 { public static void main(String[] args) throws FileNotFoundException { Scanner input = new Scanner(new File("names.rtf")); boyGirl(input); } public static void boyGirl(Scanner input) { while(input.hasNextLine()) { String name = input.next(); int number = input.nextInt(); int boys =0; int girls =0; } } }
N
N/2
N/2 + 1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)