
Is somebody able to help me with this
Write a program to read each name from the file and prompt the user to enter the percentage for that student at the keyboard. I need to input this as a percentage though and output as pass or fail
import java.util.Scanner; import java.io.*;
public class Test {
public static void main(String[] args) throws FileNotFoundException {
new File("team.html").delete();
Scanner scan = new Scanner(System.in);
System.out.print("Select a specific team: ");
String team = scan.nextLine();
System.out.print("Select (H)TML or (P)lain text output: ");
String f = scan.nextLine();
String format = f.toUpperCase();
{
Scanner s = new Scanner(new File("names.txt")
String Pass;
String Fail;
String line;
while (s.hasNext()) {
line = s.nextLine();
String[] splitupText = line.split(" : ");
if (splitupText.length == 4) {
{
}