Skip to content

Here are programs that every budding programmer who is learning to code in Java should start with. These programs are a compilation of many different types of programs and levels of programming you should try. If you want to start with levels of coding in mind use the table (serial) to refer which program is of which category. If you want in whi…

License

Notifications You must be signed in to change notification settings

psavarmattas/Java-Projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JAVA Programs For Everybody To Try!

Last Updated: June 07' 2021

Introduction:

Here are programs that every budding programmer who is learning to code in Java should start with. These programs are a compilation of many different types of programs and levels of programming you should try. If you want to start with levels of coding in mind use the table (serial) to refer which program is of which category. If you want in which serial you should code rather than the levels then refer to table (levels) for a better understanding.

Pre-Requisites:

  1. A coding IDE or just use the CMD/Terminal on your Windows Pc/Mac respectively (I used VS Code for this).

  2. Check that Java is properly installed in your system and the Path to Java is integratively set in your system.

  3. Start by trying to create the program by yourself if you encounter any problems refer to the code in the program file, if the problem still persist then create a issue or use Google/Stack Overlflow for help.

  4. Done! You have successfully created the program in Java by your own.

Serial:

Serial No. Program Name Description of the program
1 HelloWorld.java Program to print out "Hello World"
2 EvenOdd.java Program to find out the number entered is Even/Odd (Static Method).
3 EvenOddDynamic.java Program to find out the number entered is Even/Odd (Dynamic Method).
4 LargestNumberStatic.java Program to find out the largest number (Static Method).
5 LargestNumber.java Program to find out the largest number (Dynamic Method).
6 PrimeOrNotStatic.java Program to find out the prime or not (Static Method).
7 PrimeOrNot.java Program to find out the prime or not (Dynamic Method).
8 PrimeNoStatic.java Program to display first n Prime number (Static Method).
9 PrimeNo.java Program to display first n Prime number (Dynamic Method).
10 FibonacciSeriesStatic.java Program to generate fibonacci series upto n value (Static Method).
11 FibonacciSeries.java Program to generate fibonacci series upto n value (Dynamic Method).
12 RootsOfQuadracticEquationStatic.java Program to find the root of quadratic equation (Static Method).
13 RootsOfQuadracticEquation.java Program to find the root of quadratic equation (Dynamic Method).
14 Calculator Program that implements the arithmetic operation (Calculator) using switch statement.
15 ArithmeticOperations.java Program to print the sum (addition), multiply, subtract, divide and remainder of two numbers.
16 InputFromKeyBoard.java Program to demonstrate input from keyboard using Scanner.
17 FirstNonRepeatingStatic.java Program to find first non-repeating character in a string (Static Method).
18 FirstNonRepeating.java Program to find first non-repeating character in a string (Dynamic Method).
19 OccuringCharacters.java Program to find the maximum occurring character in a string.
20 MethodOverride.java Program in java to demonstrate method overloading.
21 Voter.java Program to store Voter detail as voter id, voter name & monthly income for a voter in a class. Compute annual income & display the detail. Use parameterized constructor.
22 ChainConstructor.java Program in java to demonstrate chain constructor.
23 OddEvenNumberOutput.java Program to accept a number and check the number is even or not. Prints 1 if the number is even or 0 if the number is odd.
24 CommandLineInput.java Program in java to demonstrate input from keyboard using Comand Line Argument.
25 ThreeInteger.java Program that accepts three integers from the user and return true if the second number is greater than first number and third number is greater than second number. If "abc" is true second number does not need to be greater than first number.
26 MultiLevelInheritance.java Program in java to demonstrate multilevel inheritance in java.
27 AbstractClassProgram Program to create an abstract class named Shape that contains two integers and an empty method named print Area (). Provide three classes named Rectangle, Triangle and Circle such that each one of the classes extends the class Shape. Each one of the classes contains only the method print Area () that prints the area of the given shape.

Levels:

Level No. Program Name Description of the program
1 HelloWorld.java Program to print out "Hello World"
1 EvenOdd.java Program to find out the number entered is Even/Odd (Static Method).
1 InputFromKeyBoard.java Program to demonstrate input from keyboard using Command line argument.
1 LargestNumberStatic.java Program to find out the largest number (Static Method).
1 PrimeOrNotStatic.java Program to find out the prime or not (Static Method).
1 PrimeNoStatic.java Program to display first n Prime number (Static Method).
1 FibonacciSeriesStatic.java Program to generate fibonacci series upto n value (Static Method).
1 RootsOfQuadracticEquationStatic.java Program to find the root of quadratic equation (Static Method).
1 FirstNonRepeatingStatic.java Program to find first non-repeating character in a string (Static Method).
1 InputFromKeyBoard.java Program to demonstrate input from keyboard using Scanner.
1 FirstNonRepeatingStatic.java Program to find first non-repeating character in a string (Static Method).
1 OccuringCharacters.java Program to find the maximum occurring character in a string.
1 OddEvenNumberOutput.java Program to accept a number and check the number is even or not. Prints 1 if the number is even or 0 if the number is odd.
1 CommandLineInput.java Program in java to demonstrate input from keyboard using Comand Line Argument.
2 EvenOddDynamic.java Program to find out the number entered is Even/Odd (Dynamic Method).
2 ArithmeticOperations.java Program to print the sum (addition), multiply, subtract, divide and remainder of two numbers
2 LargestNumber.java Program to find out the largest number (Dynamic Method).
2 PrimeOrNot.java Program to find out the prime or not (Dynamic Method).
2 PrimeNo.java Program to display first n Prime number (Dynamic Method).
2 FibonacciSeries.java Program to generate fibonacci series upto n value (Dynamic Method).
2 RootsOfQuadracticEquation.java Program to find the root of quadratic equation (Dynamic Method).
2 FirstNonRepeating.java Program to find first non-repeating character in a string (Dynamic Method).
2 ArithmeticOperations.java Program to print the sum (addition), multiply, subtract, divide and remainder of two numbers.
2 FirstNonRepeating.java Program to find first non-repeating character in a string (Dynamic Method).
2 MethodOverride.java Program in java to demonstrate method overloading.
2 Voter.java Program to store Voter detail as voter id, voter name & monthly income for a voter in a class. Compute annual income & display the detail. Use parameterized constructor.
2 ChainConstructor.java Program in java to demonstrate chain constructor.
2 ThreeInteger.java Program that accepts three integers from the user and return true if the second number is greater than first number and third number is greater than second number. If "abc" is true second number does not need to be greater than first number.
2 MultiLevelInheritance.java Program in java to demonstrate multilevel inheritance in java.
3 Calculator Program that implements the arithmetic operation (Calculator) using switch statement.
3 AbstractClassProgram Program to create an abstract class named Shape that contains two integers and an empty method named print Area (). Provide three classes named Rectangle, Triangle and Circle such that each one of the classes extends the class Shape. Each one of the classes contains only the method print Area () that prints the area of the given shape.

Copyright (c) 2021 PSMForums. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Here are programs that every budding programmer who is learning to code in Java should start with. These programs are a compilation of many different types of programs and levels of programming you should try. If you want to start with levels of coding in mind use the table (serial) to refer which program is of which category. If you want in whi…

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages