Problem: 4.1
Question 4.1: Write a Java program to sort a list of elements using the bubble sort algorithm.…
Question 4.1: Write a Java program to sort a list of elements using the bubble sort algorithm.…
Question 4.2: Write a program in Java to find the second smallest element in an array. Input th…
Question 4.3:Write a program in Java for multiplication of two square Matrices. Test Data : In…
Question 4.4: Write a program in Java to find sum of right diagonals of a matrix. Test Data : I…
Question 4.5: Write a program in Java to calculate determinant of a 3 x 3 matrix. Test Data : I…
Question 4.6:Write a Java program to check whether a given substring is present in the given s…
Question: Write a program in Java to find the largest and smallest word in a string. Test Data …
Question 4.8: Write a Java program to print square root (√), Ohm( Ω) , Plus Minus( ±) and not e…
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 …
Question 4.10: Write a program in Java to check armstrong and perfect numbers using the funct…
Question 4.11: Write a Java method to check whether a string is a valid password. Password rul…
Question 4.12: Write a Java method to find all twin prime numbers less than 100. Expected Outp…
Question 4.14: Write a program in Java to check whether two given strings are an anagram. Test…
Question 4.13: Write a Java Program using recursion to Find Factorial of a Number. Solution: p…
Question 4.16: Write a Java class Clock for dealing with the day time represented by hours, mi…
Question 4.17:Write a Java class Complex for dealing with complex number. Your class must have …
Question 4.18: Write a Java class Author with following features: • Instance variables : o fir…