I made some changes but I don't know if this is what you want as the result



import java.util.Scanner;

public class Lab8_Ex2
{
private static boolean heartRate;
public static void...