| Junior Member with 3 posts. THREAD STARTER | | | |
Java Assistance T_T Hi,
I've been working on a java project for University coursework (due on Tuesday :S), I'm now rushing to complete it, its a todo list which I believe is currently within my ability to do.
However I'm receiving random errors which is seriously delaying me probably due to my lack of experience, I was wondering if I can get some pro assistance.
As of now I'm receiving an illegal start of expression message, I read around as much as I could and it seems to me it mostly involves the misplacement of brackets or methods opened within methods and etc, I really can't seem to place my error.
Can anyone give me another opinion please, my deepest gratitude.
- Busy Student
My Code:
import javax.swing.*;
import java.util.*;
import java.io.*;
public class list{
public static void main(String[]args){
Todo r = new Todo();
r.todo1 = JOptionPane.showInputDialog("Enter Subject");
r.todo2 = Integer.parseInt(JOptionPane.showInputDialog("Enter Priority Number '1 - 5' 1 being most important and 5 least"));
r.todo3 = JOptionPane.showInputDialog("Enter Due Date");
public class Todo
{
public String todo1;
public int todo2;
public String todo3;
public Todo(String t1, int t2, String t3)
{
todo1 = t1;
todo2 = t2;
todo3 = t3;
}
} // 2do close
} // main method close ---------------------------------------------------------------
} // Class list closed |