-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTodoList.java
49 lines (46 loc) · 1.05 KB
/
TodoList.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
* Write a description of class TodoList here.
*
* @author (Yaswanth)
* @version (09-08-2015)
*/
public class TodoList
{
private String taskName;
private String description;
private String dueDate;
private String remainder;
private String importence;
TodoList(String name,String descrip,String date,String rem)
{
taskName=name;
description=descrip;
dueDate=date;
remainder=rem;
}
public void getImportence(String importence)
{
if(importence=="importent and urgent")
{
System.out.println("Red");
}
else if(importence=="importent and noturgent")
{
System.out.println("Pink");
}
else if(importence=="Notimportent and urgent")
{
System.out.println("Blue");
}
else
{
System.out.println("Green");
}
}
public static void main(String args[])
{
TodoList tdl1=new TodoList("JavaProgram","Todolist Program","08-08-2015","09-08-2015");
tdl1.importence="importent and urgent";
tdl1.getImportence(tdl1.importence);
}
}