Java Practical
Java Practical
INPUT
OUTPUT
INPUT
OUTPUT
Check if a number is prime or not, by taking the number as input from the keyboard
INPUT
OUTPUT
Find maximum and minimum element of a single dimensional array by defining the
array dynamically with the help of new operator
INPUT
OUTPUT
Print all the elements of two dimensional array using loop and .length property
INPUT
OUTPUT
OUTPUT
Convert a decimal to binary number and vice versa using both library functions and
custom logic
Decimal to binary using library function:
INPUT
OUTPUT
OUTPUT
INPUT
OUTPUT
OUTPUT
Write a program that show working of different functions of String and StringBuffer
classs like setCharAt(), setLength(), append(), insert(), concat() and equals().
INPUT
OUTPUT
Write a program to create a box class with methods where the volume of the box is
computed in terms of height, width, depth using objects of that class. Use a
constructor to initialize the dimensions of that box.
INPUT
OUTPUT
Modify the box class by creating parameterized and overloaded constructors for
assigning values (height, weight, depth) to the box object in various ways
INPUT
OUTPUT