# JAVA_Programs
Module-1
- Program to read a number from the user and print whether it is positive or negative. posorneg.java
- Program to solve quadratic equations (use if, else if and else). QuadraticEquation.Java
- Take three numbers from the user and print the greatest number. GreatestThree.java
- Program that keeps a number from the user and generates an integer between 1 and 7 and displays the name of the weekday. Weekday.java
- Program that reads in two floating-point numbers and tests whether they are the same up to three decimal places. FloatingDigit.java
- Program that takes a year from user and print whether that year is a leap year or not. LeapYear.java
- Program to display the first 10 natural numbers. FirstnNatural.java
- Program to input 5 numbers from keyboard and find their sum and average. SumAverage.java
- Program in Java to display the multiplication table of a given integer. MultiplicationTable.java
- Program in Java to display the pattern like right angle triangle with a number. PrintPattern.java
Module-2
- Program to read two numbers and perform the arithmetic operations using method. Arithmetic.java
- Program that performs arithmetic with values of type char.
- Design a class to overload a method compare() to return the greater of two as follows: Compare.java void compare(int, int) void compare(char, char) void compare(String, String)
- Program that creates a class Account that stores a variable balance. The class has methods to start account, to deposit money, to withdraw money and tell the current balance amount. Account.java
- Program to implement a Book class that stores the details of a book such as its code, title and price (Use constructors to initialize the objects).
- Program to differentiate between static and non-static methods.
- Program to illustrate the usage of this, final and finalize.
- Program to implement the concept of dynamic method dispatch.
- Program to pass the variable length arguments.
- Program to show the overloading of constructures.
- Program to read the comman line arguments and print the total number of arguments and its values.
Module-3
- Program for sorting a given list of names in ascending order. ListSorting.java
- Program to multiply two given matrices.
- Program to find the maximum and minimum value in an array of size m passed as argument. ArrayMinMax.java
- Program to read and print an array of size n rows with variable column size. (Hint: Irregular Array). IrArray.java
- Program that copies contents of one array to another using length member. CopyArray.java
- Program to find element from an sorted array using binary search. (Hint: java.util.package)
- Program to delete duplicate elements from an array of size 5. RemoveDuplicate.java
- Program that reverses an array and stores it in the same array. ReverseArray.java
- Program to implement all String methods on a Input String.
- Program to convert a given integer array of size n into string.
- Program to read and print a given string using different methods.
- Program to reverse the words in a string.
- Program to read a string and replace all the vowels with a $ symbol.
- Program to count the number of occurrences of a search string in a given text string.