import java.util.Scanner;
public class ConvertDate
{
Scanner console = new Scanner(System.in);
public static void main(String[] args)
{
// Inputs the month, day, and year
ConvertDate.prompt("Enter date to be converted: ");
String date = ConvertDate.readLine();
// Trims the extra spaces
String dte = date.trim();
// Creates the minimum space between the characters
int index1 = dte.indexOf(" ");
int index2 = dte.lastIndexOf(" ");
/* This is where the letters of the month are going to be store at in the output as well as capitalizing the first letter
of the month */
String firstLetter = dte.substring(0,1);
String otherLetters = dte.substring(1);
String dte0 = firstLetter.trim().toUpperCase() + otherLetters.trim().toLowerCase();
// Trims the extra spaces from the date
String dte1 = dte0.trim().substring(0, index1);
String dte2 = dte.trim().substring(index1 + 1, index1 + 4);
String dte3 = dte.trim().substring(index2 + 1);
// Gives the output of an accurate date without any extra spaces
System.out.println("Converted Date: " + dte2 + " " + dte1 + " " + dte3);
}
}
the error are at ConvertDate.prompt and ConvertDate.readLine and says that create a method prompt(String) and redLine(String) i dont know what to do