Cómo ingresar un valor LocalDate en el cuadro de diálogo "Crear objeto" de BlueJ

No estoy tratando de formatear la fecha en AAAA-MM-DD o dd / MM / AAAA. Estoy preguntando sobre el formato literal de LocalDate.

Acabo de comenzar a aprender Java y estoy usando este IDE llamado BlueJ. y quiero crear un método de prueba.

La captura de pantalla mostrará lo que estoy tratando de hacer.

Ahora, desde el constructor, sabemos que requiere un int, LocalDate y un doble. He buscado en línea y he encontrado que

https://www.javabrahman.com/java-8/java-8-working-with-localdate-localtime-localdatetime-tutorial-with-examples/

java.time.LocalDate: una instancia de LocalDate contiene una fecha sin zona horaria, en el sistema de calendario ISO-86011. LocalDate tiene el formato predeterminado "AAAA-MM-DD" como en "2016-12-12".

Así que pondría un número normal en 10001 para el testID y el doble sería algo así como 50.5 También sé que para que registre una cadena (si fuera necesario) tendría que encerrarla dentro de "cadena"

Pero he intentado todo tipo de formas para poner la fecha y me quedaría con un error

2018-05-30,30-05-2018,30 / 05/2018 me daría

Error: incompatible types: Int cannot be converted to java.time.LocalDate

"30/05/2018" por otro lado me daría

Error: Incompatible types: java.lang.String cannot be converted to java.time.LocalDate

Si intento 30.05.2018 diría

Error: ';' expected

Si intento '2018-05-30' diría

Error: unclosed character literal

Se me acabaron las formas de probarlo. Entonces, si pudieras decirme cómo debería ponerlo allí, sería genial.

Realmente necesito saber cómo BlueJ quiere que lo ingrese. Porque los recursos para BlueJ son muy escasos en línea.

Código:

import java.time.LocalDate;
import java.util.ArrayList;
/**
 * Write a description of class TestPaper here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class TestPaper
{
    // instance variables - replace the example below with your own
    private int testID;
    private LocalDate testDate;
    private double testMarks;
    private ArrayList<MCQ> MCQDetails;

    /**
     * Constructor for objects of class TestPaper
     */
    public TestPaper(int testID, LocalDate testDate, double testMarks)
    {
        this.testID = testID;
        this.testDate = testDate;
        this.testMarks = testMarks;
        MCQDetails = new ArrayList<MCQ>() ; 
    }

/**
 * Accessor Method getTestID to get the testID
 *
 * @return int value of the choice ID
 */
public int getTestID(){
    return testID;
}

/**
 * Mutator Method to set the testID
 * 
 *  @param int format of the testID to set
 */
public void setTestID(int testID){
    this.testID = testID;
}

/**
 * Accessor Method getTestMarks to get the Test Marks
 *
 * @return double value of the test marks 
 */
public double getTestMarks(){
    return testMarks;
}

/**
 * Mutator Method to set the testMarks
 * 
 *  @param String format of the choice Description to be set
 */
public void setTestMarks(double testMarks){
    this.testMarks = testMarks;
}

    /**
 * Accessor Method getTestDate to get the testDate
 *
 * @return LocalDate value of the testDate
 */
public LocalDate getTestDate(){
    return testDate;
}

/**
 * Mutator Method to set the testDate
 * 
 *  @param LocalDate format of the testDate to set
 */
public void setTestDate(LocalDate testDate){
    this.testDate = testDate;
}

/**
 * Method addMCQ will allow users to add a MCQ Object to the list of MCQ
 *
 * @param addMCQ a MCQ Object
 * @return boolean will return true if it is successfully added or false if not
 */
public boolean addMCQ(MCQ MCQName)
{
    return MCQDetails.add(MCQName);
}

/**
 * Method removeMCQ to remove an MCQ object from the Arraylist
 *
 * @param MCQName A parameter of type MCQ 
 */
public void removeMCQ(MCQ MCQName)
{
    MCQDetails.remove(MCQName);
}

/**
 * Method listMCQ to return a list of MCQ arraylist
 *
 * @return The return value of MCQDetails (MCQ Arraylist)
 */
public ArrayList<MCQ> listMCQ()
{
    return MCQDetails;
}

    public MCQ findMCQ(int MCQID)
{
    for(MCQ m : MCQDetails)
    {
        if(m.getQuestionID() == MCQID)
        {
            return m;
        }
    }
    return null;
}

Respuestas a la pregunta(2)

Su respuesta a la pregunta