Java program which allows the user to enter data for one competitor and display the data.

The output should look similar to the following layout:

Course Start time End time Gender Name
yellow 10:45:00 12:35:13 F Jasmine Davies
purple 12:51:00 14:11:30 M Mohammed Ahmed

To create a Java program that allows the user to enter data for one competitor and display the data, you can follow these steps:

1. Create a Competitor class to represent each competitor. This class should have private instance variables for course, start time, end time, gender, and name, and public getter and setter methods for each variable.

```java
public class Competitor {
private String course;
private String startTime;
private String endTime;
private String gender;
private String name;

// Constructor
public Competitor(String course, String startTime, String endTime, String gender, String name) {
this.course = course;
this.startTime = startTime;
this.endTime = endTime;
this.gender = gender;
this.name = name;
}

// Getter and setter methods for each variable
// ...
}
```

2. In the main method of your program, create an instance of the Competitor class and prompt the user to enter the required data. Use a Scanner object to read the input.

```java
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);

System.out.println("Enter the course:");
String course = scanner.nextLine();

System.out.println("Enter the start time:");
String startTime = scanner.nextLine();

System.out.println("Enter the end time:");
String endTime = scanner.nextLine();

System.out.println("Enter the gender:");
String gender = scanner.nextLine();

System.out.println("Enter the name:");
String name = scanner.nextLine();

Competitor competitor = new Competitor(course, startTime, endTime, gender, name);

// Display the data
System.out.println("Course\tStart time\tEnd time\tGender\tName");
System.out.println(competitor.getCourse() + "\t" + competitor.getStartTime() + "\t" + competitor.getEndTime() + "\t" + competitor.getGender() + "\t" + competitor.getName());

scanner.close();
}
}
```

In this program, the user is prompted to enter the course, start time, end time, gender, and name for the competitor. The Competitor object is then created using the entered data and the information is displayed in the specified format.

Note: Make sure you have the necessary import statements at the beginning of your program.