All assignments are in the Path: JavaTraining/AS2/AS2/src/main/java/com/hcl/
- Create a new simple maven project.
- Try all the maven life cycle goals
- Create account in github if you don't have one
- Create new repository and multiple branches
- git checkout from one branch to other
- Push your maven project to github
- Practice git commands
- Print the Fibonacci Series by getting the value from the user(0,1,1,2,3,5,8,13...)
- Print the prime number by getting the value from the user
- Write a Java program to swap two variables
- Write a Java Program to calculate the sum of two integers and return true if the sum is equal to a third integer
- Write a Java Program to reverse a word
-
Create a washing machine class with methods as swtichO, acceptClothes, acceptDetergent, switchOFF. acceptClothes accepts the noofClothes as argument & returns the no of Clothes.
-
Create a class Student which has following methods a) Average: which would accept marks of 3 examinations & return whether the student has passed or failed depending on whether he has scored an average above 50 or not? b) Input : which would accept the name of the student & returns the name?
-
Create a Bank class with methods deposit & withdraw. The deposit method would accept attributes amount & balance ( returns the new balance whichs the sum of amount & balance. Similarly the withdraw method would accept the attributes amount & balance & returns the new balance if(balance >=amount or return 0 otherwise
-
Create a Vehicle having following attributes. vehicle no, Model manufacturer and color. create truck which has following additional attributes: loadingcapacity(100 tons). Add a behavior tochange the color and loading capacity. Display the updated truck details.
-
The bookstore application: The bookstore sells books, music CD's, and software's. Typically a customer first logs on to the system , entering a customer id and password. The customer can then browse for titles or search by keyword. The customer puts some of the titles into a shopping cart which keeps track of the desired titles. When the customer is done shopping, he/she confirms the order, shipping and billing address. The bookstore system then issues a shipping order, bills the customer and issues an electronic receipt.
At the end of transaction the customer logs off.
OO Design: With reference to the above create, a scenario system diagram, classes and attributes and relationship as well
- Write a Java program to reverse elements in a array list?
- Write a Java program of swap two elements in an array list?
- Write a Java program to iterate through all elements in a linked list starting at the specified position?
- Write a Java program to replace an element in a linked list?
- Write a Java program to convert a hash set to an array?
Create a class Employee and the properties of an Employee are id, name, age, gender, dept, yearofjoining, salary.
Based on the context, try to create hard coded data; Use only java 8 features.
- How many male and female employees are there in this organization?
- Find out Average age of male and female emps?
- Find the highest paid employee in this org?
- List all te names of employee who has joined after 2015?
- Find out the senior most employee in this org?
- Count the number of emps in each department?
- Find male and female employees are in Maintenance department?
- Find the average slary of male and female employees?
- Differentiat eht the employees who are younger or equal to 30 yrs from those employees who older than 25 years
- List down the names of all employees in each department?
Java Console ->Front End MySQL Database-> Backend (store alteast 5 records minimum) Getting the values from the user: Applly CRUD operations:
- Get the list of employees
- Update the existing employee based in his/her id
- Delete an employee based on the employee id
- Get the employee by i
Create a maven web project and apply mvc design pattern using jdbc,servlets &jsp crud operation connecting with database
Continuation of yesterday Assignment_7_MVC(Servlet,JSP and POJO)
- Retrieve all the employees
- Update the employee by Id
- Delete an employee by Id
- Search an employee by Id