Inheritance Exercise 1 - infosys
Monday, 21 November 2022
Inheritance Exercise 1 - infosys
Sunday, 20 November 2022
Association - Exercise 1
Association - Exercise 1
Static - Exercise 1 infosys
Static - Exercise 1
Association - Exercise 1
Association - Exercise 1
String - Exercise 1
String - Exercise 1
Complete the removeWhiteSpaces() method given in the Tester class.
Method Description
removeWhiteSpaces(String str)
Remove all the white spaces from the string passed to the method and return the modified string.
Test the functionalities using the main() method of the Tester class.
Sample Input and Output

Encapsulation - Exercise 1
Encapsulation - Exercise 1
Consider the class Employee given below for representing employees of an organization. It has 5 different instance variables and a method to calculate the total salary based on the jobLevel.
Salary is calculated in the calculateSalary() method.
Make necessary changes to the class by making all the attributes private and by adding necessary accessor and mutator methods thus bringing in Encapsulation.
Saturday, 19 November 2022
selection Control Structure - Assignment 4
Selection Control Structure - Assignment 4
Implement a program to calculate the product of three positive integer values. However, if one of the integers is 7, consider only the values to the right of 7 for calculation. If 7 is the last integer, then display -1.
Note: Only one of the three values can be 7.
Sample Input and Output

Free Resume Template
Creating a blog post that discusses the pros and cons of using a resume rule is a great way to provide valuable information to job seekers ...




