Java Lab4

Problem: 4.1

Question 4.1: Write a Java program to sort a list of elements using the bubble sort algorithm.…

Problem: 4.2

Question 4.2: Write a program in Java to find the second smallest element in an array. Input th…

Problem: 4.3

Question 4.3:Write a program in Java for multiplication of two square Matrices. Test Data : In…

Problem: 4.4

Question 4.4: Write a program in Java to find sum of right diagonals of a matrix. Test Data : I…

Problem 4.5

Question 4.5: Write a program in Java to calculate determinant of a 3 x 3 matrix. Test Data : I…

Problem 4.6

Question 4.6:Write a Java program to check whether a given substring is present in the given s…

Problem 4.7

Question: Write a program in Java to find the largest and smallest word in a string. Test Data …

Problem: 4.8

Question 4.8: Write a Java program to print square root (√), Ohm( Ω) , Plus Minus( ±) and not e…

Problem: 4.9

Question 4.9 : Write a program in Java to find the sum of the series 1!/1+2!/2+3!/3+4!/4+5!/5 …

Problem: 4.10

Question 4.10:  Write a program in Java to check armstrong and perfect numbers using the funct…

Problem 4.11

Question 4.11: Write a Java method to check whether a string is a valid password. Password rul…

Problem: 4.12

Question 4.12:  Write a Java method to find all twin prime numbers less than 100. Expected Outp…

Problem 4.14

Question 4.14: Write a program in Java to check whether two given strings are an anagram. Test…

Problem 4.13

Question 4.13: Write a Java Program using recursion to Find Factorial of a Number. Solution:  p…

Problem 4.16

Question 4.16: Write a Java class Clock for dealing with the day time represented by hours, mi…

Problem: 4.17

Question 4.17:Write a Java class Complex for dealing with complex number. Your class must have …

Problem: 4.18

Question 4.18: Write a Java class Author with following features: • Instance variables : o fir…

Load More
No results found