Skip to content

CHETHANDB123/Advanced-Java-Programs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advanced-Java-Programs

1 a. Develop a Java program for adding elements [Apple, Banana, Orange] into an ArrayList and a LinkedList to perform the following operations with different functions directed as follows Linked List o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/LinkedList_1a/Screenshot%202025-05-19%20215454.png

.....................................................................................................................................................................................................................

1b. Array List programs

1.Color remove o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/Array%20List_1b/Screenshot%202025-05-19%20220733.png

2.Color remove by index o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/Array%20List_1b/Screenshot%202025-05-19%20220755.png

3.Color sort o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/Array%20List_1b/Screenshot%202025-05-19%20220818.png

4.Color sublist o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/Array%20List_1b/Screenshot%202025-05-19%20220848.png

5.Search color o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/Array%20List_1b/Screenshot%202025-05-19%20220913.png

.....................................................................................................................................................................................................................

1c. Linked List Programs

1.Linked list element positions o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/Linked%20List_1c/Screenshot%202025-05-19%20222927.png

2.Linked list iterator example o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/Linked%20List_1c/Screenshot%202025-05-19%20222947.png

3.Linked list offer last o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/Linked%20List_1c/Screenshot%202025-05-19%20223011.png

4.Linked list reverse iteration o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/Linked%20List_1c/Screenshot%202025-05-19%20223054.png

5.Linked list swap elements o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/Linked%20List_1c/Screenshot%202025-05-19%20223126.png

.....................................................................................................................................................................................................................

2 a. Develop a java program for performing various string operations with different stringhandling functions directed as follows String Creation and Basic Operations, Length and Character Access, String Comparison, StringSearching, Substring Operations , String Modification, Whitespace Handling, String Concatenation, String Splitting, StringBuilder Demo, String Formatting , Validate Email withcontains( ) and startsWith() and endsWith()

String operationsDemoo 0/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/string%20operations_2a/Screenshot%202025-05-19%20225400.png

.....................................................................................................................................................................................................................

2b. Develop a Java program to make a Performance Test on StringBuffer and StringBuilder forappending the string ‘AIET’ for 10000 times both in the StringBuffer and StringBuilder. Justify your answer which one is better.

StringBuffer v/s StringBuilder o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/string%20operations_2b/Screenshot%202025-05-19%20230026.png

.....................................................................................................................................................................................................................

3a. Develop a java program for performing various string operations with different stringhandling functions directed as follows: String Creation and Basic Operations, Length and Character Access, String Comparison, StringSearching, Substring Operations , String Modification, Whitespace Handling, String Concatenation, String Splitting, StringBuilder Demo, String Formatting , Validate Email with contains( ) andstartsWith() and endsWith()

String operations Demo o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/string%20operations_3a/Screenshot%202025-05-19%20230746.png

.....................................................................................................................................................................................................................

3b. String Exercise progams

1.Null or whitespace check o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/String%20Exercise%20progams_3b/Screenshot%202025-05-19%20231520.png

2.Palindrome checker o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/String%20Exercise%20progams_3b/Screenshot%202025-05-19%20231838.png

3.Reverse string Demo o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/String%20Exercise%20progams_3b/Screenshot%202025-05-19%20231915.png

4.Substring counter o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/String%20Exercise%20progams_3b/Screenshot%202025-05-19%20232028.png

5.White space remover o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/String%20Exercise%20progams_3b/Screenshot%202025-05-19%20232101.png

.....................................................................................................................................................................................................................

3c. String Exercise progams

1.Capitalize words o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/String%20Exercise%20progams_3C/Screenshot%202025-05-20%20171934.png

2.Numeric check o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/String%20Exercise%20progams_3C/Screenshot%202025-05-20%20172044.png

3.Random string generator o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/String%20Exercise%20progams_3C/Screenshot%202025-05-20%20172336.png

4.Truncate string o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/String%20Exercise%20progams_3C/Screenshot%202025-05-20%20172643.png

5.Word counter o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/String%20Exercise%20progams_3C/Screenshot%202025-05-20%20172721.png

.....................................................................................................................................................................................................................

4a. Basic hello program of Swing displaying the message Hello! VI C , Welcome to Swing Programming in Blue color plain font with font size of 32 using Jframe and Jlabel

Hello swing o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/Swing%20displaying_4a/Screenshot%202025-05-20%20181049.png

.....................................................................................................................................................................................................................

4b. Develop a Swing program in Java to display a message “Srilanka is pressed” or “India ispressed” depending upon the Jbutton either Srilanka or India is pressed by implementing the event handling mechanism with addActionListener( )

Country Button Demo o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/Swing%20program_4b/Screenshot%202025-05-20%20181712.png

.....................................................................................................................................................................................................................

4c. Develop a Swing program in Java to display a message “Digital Clock is pressed” or “HourGlass is pressed” depending upon the Jbutton with image either Digital Clock or Hour Glass is pressed by implementing the event handling mechanism with addActionListener( )

Clock Button Demo o/p-https://github.com/CHETHANDB123/Basics-of-Java-Programming/blob/main/Swing%20program_4C/Screenshot%202025-05-20%20191415.png

.....................................................................................................................................................................................................................

5a. Develop a Swing program in Java to add the countries USA, India, Vietnam, Canada,Denmark, France, Great Britain, Japan, Africa, Greenland, Singapore into a JList and display them on console whenever the countries are selected on the list.

Country List Demo o/p-https://github.com/CHETHANDB123/Advanced-Java-Programs/blob/main/5a_Swing%20program/Screenshot%202025-05-21%20001357.png

.....................................................................................................................................................................................................................

5b. Develop a Swing program in Java to create a Tabbed Pan of RED, BLUE and GREEN anddisplay the concerned color whenever the specific tab is selected in the Pan.

Color Tabbedpane Demo o/p-https://github.com/CHETHANDB123/Advanced-Java-Programs/blob/main/5b_Swing%20program/Screenshot%202025-05-21%20000137.png

.....................................................................................................................................................................................................................

5c. Develop a Swing program in Java to add the countries USA, India, Vietnam, Canada,Denmark, France, Great Britain, Japan, Africa, Greenland, Singapore into a JList and display the capital of the countries on console whenever the countries are selected on the list.

Country Capital List o/p-https://github.com/CHETHANDB123/Advanced-Java-Programs/blob/main/5c_Swing%20program/Screenshot%202025-05-20%20235216.png

.....................................................................................................................................................................................................................

5d. Develop a Swing program in Java to create a Tabbed Pan of Cyan, Magenta and Yellow anddisplay the concerned color whenever the specific tab is selected in the Pan

Color TabbedPane o/p-https://github.com/CHETHANDB123/Advanced-Java-Programs/blob/main/5d_Swing%20program/Screenshot%202025-05-20%20221125.png

.....................................................................................................................................................................................................................

6a. Build a servlet program to find the factorial of a number using HTML with step by step procedure.

Factorial Servlet o/p-https://github.com/CHETHANDB123/Advanced-Java-Programs/blob/main/6a_servlet%20program/Screenshot%202025-05-21%20001838.png

.....................................................................................................................................................................................................................

6b. Build a servlet program to create a cookie to get your name through text box and press submit button( through HTML) to display the message by greeting Welcome back your name ! , you have visited this page n times ( n = number of your visit ) and demonstrate the expiry of cookie also.

Cookie Servlet o/p-https://github.com/CHETHANDB123/Advanced-Java-Programs/blob/main/6b_servlet%20program/Screenshot%202025-05-21%20214415.png

.....................................................................................................................................................................................................................

6c. Build a servlet program to check the given number is prime number or not using HTML with step by step procedure.

Prime o/p-https://github.com/CHETHANDB123/Advanced-Java-Programs/blob/main/6c_servlet%20program/Screenshot%202025-05-21%20002618.png

.....................................................................................................................................................................................................................

7a. Build a Session Management using JSP program set with one minute session expiry time to get your name through text box and press submit to display the message by greeting Hello your name!. Check the expiry of the session after one minute.

Session Management o/p-https://github.com/CHETHANDB123/Advanced-Java-Programs/blob/main/7a_Session%20Management/Screenshot%202025-05-21%20223805.png

.....................................................................................................................................................................................................................

7b. Construct a Cookie Management program using JSP to get the fields Name, Domain and Max Expiry Age ( in sec) and press the button Add Cookie for displaying the set cookie information. Then it has to go to show the active cookie list when you press the link go to the active cookie list

Cookie Management o/p-https://github.com/CHETHANDB123/Advanced-Java-Programs/blob/main/7b_Cookie%20Management/Screenshot%202025-05-21%20215030.png

.....................................................................................................................................................................................................................

8a. Read all the existing records from the table coffee which is from the database test and insert a new coffee product into it [Create a table coffee with fields ( id,coffee_name,price)] using HTML and JSP to get the fields and display the results respectively

Mysql o/p-https://github.com/CHETHANDB123/Advanced-Java-Programs/blob/main/8a_database%20test%20and%20insert/Screenshot%202025-05-21%20215356.png

.....................................................................................................................................................................................................................

8b. Read all the existing records from the table coffee which is from the database test and update an existing coffee product in the table with its id. [Create a table coffee with fields ( id,coffee_name,price)] using HTML and JSP to get the fields and display the results respectively

Mysql Update o/p-https://github.com/CHETHANDB123/Advanced-Java-Programs/blob/main/8b_database%20test%20and%20update/Screenshot%202025-05-21%20215806.png

.....................................................................................................................................................................................................................

8c. Develop a JDBC project using JSP to append the fields empno, empname and basicsalary into the table Emp of the database Employee by getting the fields through keyboard and Generate the report as follows for the TABLE Emp (Emp_NO , Emp_Name, Basicsalary ) using HTML and JSP to get the fields and display the results respectively

Salary Report o/p-https://github.com/CHETHANDB123/Advanced-Java-Programs/blob/main/8c_JDBC%20project/Screenshot%202025-05-21%20220219.png

.....................................................................................................................................................................................................................

8d. Develop a JDBC project using JDBC to update the fields empno, empname and basicsalary into the table Emp of the database Employee using HTML and JSP to get the fields and display the results respectively

Update Employee o/p-https://github.com/CHETHANDB123/Advanced-Java-Programs/blob/main/8d_JDBC%20project/Screenshot%202025-05-21%20222703.png

.....................................................................................................................................................................................................................

9a. Read all the existing records from the table coffee which is from the database test and deletean existing coffee product from the table with its id and display the rest of the records using HTML and JSP to get the field and display the results respectively

Mysql Delete o/p-https://github.com/CHETHANDB123/Advanced-Java-Programs/blob/main/9a_database%20test%20and%20delete/Screenshot%202025-05-21%20221140.png

.....................................................................................................................................................................................................................

9b. Read all the existing records from the table coffee which is from the database test and querycoffee name starting with ‘D’ in the table using HTML and JSP to get the field and display the results respectively

Mysql Query o/p-https://github.com/CHETHANDB123/Advanced-Java-Programs/blob/main/9b_database%20test%20and%20query/Screenshot%202025-05-21%20221440.png

.....................................................................................................................................................................................................................

9c. Develop a JDBC project using MySQL to append the fields empno, empname and basicsalary into the table Emp of the database Employee by getting the fields through keyboard and Generate the report as follows for the table Emp (Emp_NO , Emp_Name, Basicsalary ) using HTML and JSP to get the field and display the results respectively

JDBC append o/p-https://github.com/CHETHANDB123/Advanced-Java-Programs/blob/main/9c_JDBC%20append/Screenshot%202025-05-21%20223155.png

.....................................................................................................................................................................................................................

9d. Develop a JDBC project using MySQL to delete the records in the table Emp of the database Employee by getting the name starting with ‘S’ through keyboard and Generate the report as follows using HTML and JSP to get the field and display the results respectively

JDBC delete o/p-https://github.com/CHETHANDB123/Advanced-Java-Programs/blob/main/9d_JDBC%20delete/Screenshot%202025-05-21%20223449.png

.....................................................................................................................................................................................................................

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published