Download as odt, pdf, or txt
Download as odt, pdf, or txt
You are on page 1of 3

Step 1:Create a String List of Technology to Store 1)java 2)j2ee 3)j2me Step 2: Check the technology List Contains

Java if it Contains Java then remove java and add j2se Step 3: 1)Print the List by Using Iterator 2)Print the List using for Each Loop 3)Print the List Object =================================================================== = Create Two String list First list name is list1 contains below values. Java J2ee J2se MySQL ------------------------Second List name is list2 contains given below. values Java J2se Oracle SQLserver --------------------------------Then do the following task 1) Print list1 values. 2) Print list2 values. 3) Create another one list that list contains only common values of list1 and list2 4) Create a list. that list contains only differed values of list1 and list2 5) Create a list. that list contains both list1 and list2 values.

Create class, Method, Variable as follows:class name TechnologyLogic, Global variable HashSet whose values are java, j2ee, j2me, java 1) Create method removeData whose Argument is String, return type is Hash set, removeData method business logic as follows if any string passed as argument to removeData method it should check the String as follows if string is available means print 'String is available' and remove the String from hashset and return the updated hashset. if it is not available then print the Message 'The string is not available' and return the original hashset values. 2)Create method datatoUpper whose argument is String, return type is Hashset, datatoupper method business logic as follows. if any string is passed as argument to datatoUpper method it should check if string is available in the global HashSet if available print 'string available', remove the string from the global hashset and convert to uppercase and add the value to the hashset and return the updatedhashset else print 'String is not available' datatoupper method should return original hashset values. Create the Main class whose name is TechnologyManage 1)Call the removeData method pass the string argument as "java" iterate the returned hashset values 1)Call the datatoupper method pass the string argument as "j2me" and iterate the returned hashset values ================================================================== 1.Create Application to Login validation by using Map. Hard Code Global Map variable [Map acts like Database] which includes set of userName and password. for 5 employee Do the following function in same java application:User have to type his username and password from main and check the inputed username and password with map username ,password a) Check the userName is empty or not. If empty display the message "userName is empty". b)Check the passWord is empty or not. If empty display the message "passWord is empty". b)check userName is in Map or not. If not in Map "User Name Wrong". else check the password for the corresponding userName. If passWord is wrong, print "Please Check PassWord". Else print "Login Successful".

1)Write a Program to show connection establishment.

2)Write a program to perform insert,update,delete by using Statement Object. 3)Write a program to perform insert,update,delete by using PreparedStatement Object. 4)Write a program to show Select Operations by using ResultSet Object of PreparedStatement. 5) Using JDBC program check whether the person is eligible for Vote or Not. If Eligible insert the values with "PersonName" "AgeValue" and "Yes". Otherwise insert the values with "PersonName" "AgeValue" and "No". Sample Output: Name Age Eligibility Saran 20 Yes No Vinodh 15

===================================================== Create table employeeinfo whose column are empname,password,empid and empid is primary key insert atleast 5 rows Using JDBC do the following Functions: 1)retrive the following details from employeeinfo such as empid,password and store in hashmap and check the empid,password available in hashmap or not 2)retrive the following details from employeeinfo such as empname and add in ArrayList and display the list details using iterator 3)retrive the following details from employeeinfo such as empid and add in HashSet and display the Set details using iterator ======================================= Create a table with two fields: SalesPrice and Coffees. 1)Write a JDBC Program to Insert Array of SalesPrice and Coffees into the table by using PreparedStatement. 2)Write a JDBC Program to Fetch all the values From the table by using CallableStatement.

You might also like