```java
//java program to find name of the highest scored person
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
//object of the Scanner class
Scanner sc = new Scanner(System.in);
float max = 0; //to find highest mark
float mark; //to accept mark
String maxname = ""; //to find name of the highest scored person
String name = ""; //to accept name
System.out.print("Enter Name: ");
name = sc.next(); //can accept name without space
while (!name.equals("stop")) { //loop while name not equal to stop
System.out.print("Enter Mark: ");
mark = sc.nextFloat(); //accept mark
if (mark > max) { //entered mark > max
max = mark; //set mark as max mark
maxname = name; //store name to maxname
}
System.out.print("Enter Name: ");
name = sc.next();
}
System.out.print(maxname + " has the highest score, " + max);
sc.close();
}
}
```