TO DO LIST
MINI PROJECT REPORT
Submitted by
20F208 – BHARATH KUMAR S
In partial fulfillment for the award of the degree
of
BACHELOR OF ENGINEERING
in
INFORMATION TECHNOLOGY
18FE04-ADVANCED JAVA PROGRAMMING
JULY 2022
CERTIFICATE
Certified that this project report titled “To do list” is the bonafide work of
20F208 – BHARATH KUMAR S , who carried out the project under my supervision
.Certified further , that to the best of my knowledge the work reported here in does not
form part of any other project report.
I understand the policy on plagiarism and declare that the project and publications
are my own work ,except where specifically acknowledged and has not been copied from
other sources or been previously submitted for award or assessment.
VIKKRAM.R
Faculty-In-charge
Submitted for the Project Viva-Voce examination held on ______________
Examiner I Examiner II
18PE04 / 18FE04/18SE04 ADVANCED
JAVA PROGRAMMING
MINI PROJECT REPORT
SEMSTER IV
2022
NAME BHARATH KUMAR S
ROLL NO 20F208
DEPARTMENT B.TECH INFORMATION TECHNOLOGY
B
SECTION
18PE04 / 18FE04/18SE04 Advanced Java Programming Mini project report
TABLE OF CONTENTS
Page
S.No. Mini-Project Title Topics Covered No.
1. To Do List
2. Can Update Status of To Do Tasks
18PE04 / 18FE04/18SE04 Advanced Java Programming Mini project report
MINI-PROJECT EVALUATION
Evaluation criteria
Mini-Project Title Coding Output Demonstra Viva Total Signature of the Faculty In
tion Voce
charge with date
30 30 30 Marks 10 100
Marks Marks Marks Marks
TO DO LIST
Review
Can Update To do Tasks
Review
Overall Mini-Project Marks (100)
CO6
(100)
Signature of the Course Coordinator with date
18PE04 / 18FE04/18SE04 Advanced Java Programming Mini project report
Date: TO DO LIST
PROJECT DESCRIPTION:
A JAVA PROJECT TO STORE TASKNAME TO
BE DONE AND THE DETAILS ABOUT THE
TASK
▪ Create a method to Create a Table
▪ Create a method that can add Input to to do list
▪ Create a method to Display the Tasks added in the TodoList
▪ Create a method that new Tasks
▪ Create a method jdbc connection to store data in database
User data :
18PE04 / 18FE04/18SE04 Advanced Java Programming Mini project report
Date: Quiz Application
PROJECT DESCRIPTION: Project
Objective:
Create a Web based Java application that would allow to store user tasks to be done and the about the
task
1. TaskName
2. Date Entered
3. Due Date for The Task
4. Status Of The Task
5. Description about the Task
Overview:
AddTask : It is Used to add Task into the database
update Task: This function is used to update the task date , status , duedate , etc…!!.
For the operation to be successful, the following conditions are to be met.
1. The Input given to change the taskname and the taskname should be correct
2. The task from which details are retrieved should be entered Correctly
If all these conditions are met, the task can be entered into the Table and updated at any time when it
needs to get updated Table Name : To DOList
Values for this table will be hardcoded directly.
Insert some records into To DoList
Sample Records
TASKNAME DATE DUE DATE STATUS DESCRIPTION
18PE04 / 18FE04/18SE04 Advanced Java Programming Mini project report
—--------------------------------------------------------------------------------------------------------------------------------
LearnFlutter 22/3/22 27/5/22 Not Completed learn Flutter soon
Ads assignment 22/3/22 2/8/22 Not Completed complete ads assignment
Table Name: To do List Project Design:
Package: com.kce.bank.util
Class Method and Variables Description
DBUtil DB connection class
public static Connection Establish a connection to the
getDBConnection() database and return the
java.sql.Connection reference
No Task found Exception User defined exception class
public String toString
no task name entered
Exception
Class Description
add Task . used to add task to the todo list
update
taskname • used to update the taskname in the todo list
update
duedate
• This is used to update the due date of a task stored in the db for that you need
to enter the correct taskname which should be changed
Update Status
This is used to update the status of the task it requires taskname which should be
get updated
18PE04 / 18FE04/18SE04 Advanced Java Programming Mini project report
Display Tasks
This is used Display the task name and their due date description and etc
Display all
• This is used to display all the values present in the todo list table
Package: com.kce.bank.service
Class Method and Variables Description
To Do List Main class
public static void main(String[] args)
The code that is needed to test your program goes here. A sample code is shown at
the end of the document.
public String checkBalance(String accountNumber)
Steps to perform:
Invoke The appropriate statements in the console to perform given actions
1. enter the taskname
2. If taskname exists enter the status which need to be updated in the database
3. Using Result set print the taskname and details
Remove
Tasks
This is used to remove the Taskname from the to do list for that you need to enter
the taskname which needs to be deleted
Main Method:
You can write code in the main method and test all the above test cases. A sample code of the
main method to test the first test case is shown below for your reference.
18PE04 / 18FE04/18SE04 Advanced Java Programming Mini project report
import java.sql.Connection;
import java.sql.DriverManager;
public class connector {
public Connection getConnection() throws Exception {
Connection conn;
Class.forName("com.mysql.cj.jdbc.Driver");
conn = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/jdbc_connectivity", "root",
"Bharath123*");
if (conn != null) {
System.out.println("connected");
} else {
System.out.println("not connected");
return conn;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.Scanner;
public class TodoList {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) throws Exception {
connector connect = new connector();
Connection conn;
conn = connect.getConnection();
Statement stmt;
stmt = conn.createStatement();
18PE04 / 18FE04/18SE04 Advanced Java Programming Mini project report
// stmt.executeUpdate("create Table TodoList(TaskName varchar(200) , date varchar(200) , DueDate
varchar(200), Status varchar(200) ,TaskDescription varchar(200) )");
while (true) {
System.out.println("press Insert , updateDuedate ,updateStatus , removeTask , changeDescription , QuitApp
, DisplayTasks ,displayall");
String check = sc.nextLine();
if (check.equals("Insert")) {
PreparedStatement pstmt;
pstmt = conn.prepareCall("Insert into TodoList values (?,?,?,?,?)");
System.out.println("Enter task name to be Entered ");
String taskname = sc.nextLine();
System.out.println("Enter the Date to Be Entered");
String date = sc.nextLine();
System.out.println("Enter The Due Date ");
String duedate = sc.nextLine();
System.out.println("Enter The Status");
String status = sc.nextLine();
System.out.println("Enter The Task Description");
String taskdesc = sc.nextLine();
pstmt.setString(1, taskname);
pstmt.setString(2, date);
pstmt.setString(3, duedate);
pstmt.setString(4, status);
pstmt.setString(5, taskdesc);
pstmt.executeUpdate();
System.out.println("****************************************************************************
*****");
continue;
if (check.equals("removeTask")) {
PreparedStatement pstmt1;
pstmt1 = conn.prepareCall("delete from TodoList where TaskName = (?)");
18PE04 / 18FE04/18SE04 Advanced Java Programming Mini project report
System.out.println("enter the task to be deleted");
String del = sc.next();
pstmt1.setString(1,del );
pstmt1.executeUpdate();
System.out.println("****************************************************************************
*****");
continue;
if (check.equals("updateStatus")) {
PreparedStatement pstmt2;
pstmt2 = conn.prepareCall("update TodoList set Status = (?) where TaskName = (?)");
System.out.println("enter the TaskName to be updated");
String tas = sc.next();
System.out.println("enter the status");
String status = sc.next();
pstmt2.setString(2,tas);
pstmt2.setString(1,status);
pstmt2.executeUpdate();
System.out.println("****************************************************************************
*****");
continue;
if (check.equals("updateDuedate")){
PreparedStatement pstmt3;
pstmt3 = conn.prepareCall("update TodoList set DueDate = (?) where TaskName = (?)");
System.out.println("enter the TaskName to be updated");
String Taskname = sc.next();
pstmt3.setString(2,Taskname);
System.out.println("enter the new duedate");
18PE04 / 18FE04/18SE04 Advanced Java Programming Mini project report
String duedate = sc.next();
pstmt3.setString(1,duedate);
pstmt3.executeUpdate();
System.out.println("****************************************************************************
*****");
continue;
if (check.equals("changeDescription")){
PreparedStatement pstmt4;
pstmt4 = conn.prepareCall("update TodoList set TaskDescription = (?) where TaskName = (?)");
System.out.println("enter the TaskName to be updated");
String tasks = sc.next();
System.out.println("enter the description");
String description = sc.next();
pstmt4.setString(1,description);
pstmt4.setString(2,tasks);
pstmt4.executeUpdate();
System.out.println("****************************************************************************
*****");
continue;
if (check.equals("DisplayTasks")){
PreparedStatement preparedStatement ;
preparedStatement = conn.prepareCall("select * from TodoList where TaskName = (?) ");
String ts = sc.nextLine();
preparedStatement.setString(1,ts);
ResultSet rs ;
rs =preparedStatement.executeQuery();
while (rs.next()){
System.out.println(rs.getString(1) + " " + rs.getString(2) + " " + rs.getString(3) + " " + rs.getString(4) + " "
+ rs.getString(5));
18PE04 / 18FE04/18SE04 Advanced Java Programming Mini project report
System.out.println("****************************************************************************
*****");
continue;
if (check.equals("displayall")){
PreparedStatement pstate ;
pstate = conn.prepareCall("select * from TodoList");
ResultSet rst = pstate.executeQuery();
while (rst.next()){
System.out.println(rst.getString(1) + " " + rst.getString(2) + " "+ rst.getString(3) + " " + rst.getString(4) +
" " +rst.getString(5)) ;
continue;
if (check.equals("QuitApp")){
System.out.println("Quitted");
break;
OUTPUT 1 :
OUTPUT 2 :
18PE04 / 18FE04/18SE04 Advanced Java Programming Mini project report
OUTPUT 3 :
OUTPUT 4:
OUTPUT 5 :
18PE04 / 18FE04/18SE04 Advanced Java Programming Mini project report
OUTPUT 6:
OUTPUT 7:
OUTPUT 8 :
18PE04 / 18FE04/18SE04 Advanced Java Programming Mini project report
OUTPUT 9 :
18PE04 / 18FE04/18SE04 Advanced Java Programming Mini project report