GithubHelp home page GithubHelp logo

wipro-training-collection---assignments-for-list's Introduction

Wipro TalentNext PBL

Topics Covered Hands-on Assignments for List

No. Hands-on Assignment Topics Covered Status

1

Develop a java class with a method saveEvenNumbers(int N) using ArrayList to store even numbers from 2 to N, where N is a integer which is passed as a parameter to the method saveEvenNumbers().
The method should return the ArrayList (A1) created. In the same class create a method printEvenNumbers()which iterates through the arrayList A1 in step 1, and It should multiply each number with 2 and display it in format 4,8,12….2*N. and add these numbers in a new ArrayList (A2). The new ArrayList (A2) created needs to be returned. Create a method printEvenNumber(int N) parameter is a number N. This method should search the arrayList (A1) for the existence of the number ‘N’ passed. If exists it should return the Number else return zero.Hint: Use instance variable for storing the ArrayList A1 and A2. NOTE: You can test the methods using a main method.

List ArrayList 	

2

  1. Create an application for employee management having following classes: a) Create an Employee class with following attributes and behaviors : i) EmpId Int ii) EmpName String iii) EmpEmail String iv) EmpGender char v) EmpSalary float vi) GetEmployeeDetails() -> prints employee details

b) Create one more class EmployeeDB which has the following methods. i) boolean addEmployee(Employee e) ii) boolean deleteEmployee(int empId) iii) String showPaySlip(int empId) iv) Employee[] listAll()

  1. Do implementation of the above application with below two methods : I. Use an ArrayList which will be used to store the employees and use enumeration/iterator to process the employees. II. Use a TreeSet Object to store employees on the basis of their EmpId and use enumeration/iterator to process employees. [Hint: Use Comparable interface] Write a Test Program to test that all functionalities are operational.

    List enumeration / Iterator

3

Create an ArrayList which will be able to store only Strings. Create a printAll method which will print all the elements using an Iterator.

List iterator 	

4

Create an ArrayList which will be able to store only numbers like int,float,double,etc, but not any other data type.

List ArrayList 	

5

Create an ArrayList of Employee( id,name,address,sal) objects and search for particular Employee object based on id number.

List ArrayList 	

6

Implement the assignment 1 using Linked List

List Linked List 	

7

Implement the assignment 1 using Vector

List, Vector 	

8

Write a program that will have a Vector which is capable of storing emp objects. Use an Iterator and enumeration to list all the elements of the Vector.

List, Vector 	

wipro-training-collection---assignments-for-list's People

Contributors

cyberster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.