ramdcoder / JavaPrograms

Let's learn basic java programs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JavaPrograms

Let's learn basic java programs.

Java program to calculate area of a circle

Java program to add two numbers

Java program to calculate area of rectangle

Java convert binary to decimal

System arraycopy() method in java

Binary search in java

Calculate percentage in java

Convert char array to string in java

Java create new file

How to get current date and time in java

Java convert date to string

Java program to convert decimal number to binary

Java convert decimal to hex

Java convert decimal to octal

How to delete a directory in java

Java program to delete specified integer from an array

Java program to print Floyd’s triangle

Java program to find IP address of a system

Java program to check even or odd number

Factorial program in java

Java convert hex to decimal

How to get last modified date of a file in java

Java program to find if given year is leap year

Linear search in java

Java program to find transpose of a matrix

Java convert octal to decimal

Java program to check if a number is palindrome or not

Java program to check whether string is palindrome

Java program to display pascal triangle

Java program to check whether number is prime or not

Java program to print alphabets

Java program to print multiplication table of any number

Java program to delete vowels in a given string

Random number generator in java

How to rename file in java

Java reverse string array

Java program to find simple interest

How to sort a string array in java

Java remove character from string

Reverse a string in java

Java program to swap two numbers

Fibonacci series in java

Symmetric matrix program in java

Convert string to date in java

Java program to convert integer value into binary

Matrix multiplication in java using function

Java program to swap two numbers using function

Java program to swap two numbers using bitwise operator

Java program to find circumference of a circle

Java program to calculate area of circle using method

Java program to find perimeter of a rectangle

Calculate area of rectangle using class in java

Calculate area of rectangle using default constructor in java

Calculate area of rectangle using parameterized constructor in java

Calculate area of rectangle using constructor overloading in java

Find minimum and maximum values in a java array

Static method – java convert decimal to octal

Recursion – java program to convert decimal to octal

How to remove element from arraylist in java

Java program to print odd and even numbers in an array

Even odd program in java using ternary operator

Java Bitwise AND to check a given number is odd or even

Java program to print armstrong number from 1 to 1000

Java program to check armstrong number

Java program find GCD and LCM of two numbers using euclid’s algorithm

Java program to remove vowels from a string using switch case

Java program to remove vowels from string using StringBuffer class

Java program to display prime numbers from 1 to 100

Java program to check if it is a sparse matrix

Java program to find largest in three numbers using ternary operator

Java program to find the largest in three numbers using nested if

Sort string array in case insensitive order and case sensitive order java

Java program to sort names in an alphabetical order

Java program to convert decimal to binary using toBinaryString and stack

Java program to convert decimal number to binary & count number of 1s

Java program to check whether string is palindrome using library methods

Java program to check palindrome string using recursion

Java program to add two numbers using method

Java program to find LCM of two numbers

Java program to find largest of three numbers

Remove duplicate elements in an array in java

Binary to octal in java

Java program to find area and perimeter of square

Java program to check neon number

Area of rhombus in java

Perimeter of rhombus in java

Pronic number in java

Area of octagon in java

Area of equilateral triangle in java

Hexadecimal to octal in java

Octal to binary in java

Octal to hexadecimal in java

Binary to hexadecimal in java

Hexadecimal to binary in java

Convert uppercase to lowercase in java without using string function

Area and perimeter of trapezium in java

Area of Isosceles Triangle in java

Area of parallelogram in java

Perimeter of parallelogram in java

Anagram java program

Array java programs examples with output for practice

Java program to find area of circle using bufferedreader

Addition of two numbers in java using class and objects

Java program to find area of triangle

Subtract two numbers without using arithmetic operators in java

Multiply two numbers without using arithmetic operators in java

Convert decimal number to binary in java without using array

Decimal number to binary in java using recursion

Java program to convert decimal to hexadecimal using recursion

Java program convert decimal to octal using while loop

Remove element from a specific index from an array in java

Java program to insert an element at specific position in an array

Display even and odd numbers in java using for loop

Armstrong number in java using recursion

Inverted floyd triangle of numbers in java

Reverse factorial program in java

Factorial from 1 to 10 in java

4 Digit Armstrong number in java

Java program to find trace of a matrix

Linear search in java using recursion

Check leap year or not using conditional operator in java

Convert String to HexaDecimal in java

Convert binary to decimal in java using recursion

Print pattern in java 1 01 101 0101 10101

Floyd’s triangle number pattern using while loop in java

Floyd’s triangle star pattern in java

Java program to print prime numbers in a given range

Pascal’s triangle in java using recursion

Pascal triangle in java using array

Pascal triangle program in java without using arrays

Java program to check palindrome number using recursion

String palindrome in java without using reverse method

Java program bubble sort in ascending and descending order

Transpose of a matrix in java without using second matrix

Transpose of a matrix in java using BufferedReader

Get current date and time in java 8

Convert char to string java

Reverse a string in java without using reverse function

Reverse a string word by word in java

Java program to calculate compound interest

Multiplication table in java using array

Java program to print prime numbers from 2 to N

Prime number program in java using scanner

Java program to print prime numbers upto n

Add two matrices in java using bufferedreader

Difference between for and for each loop in java

How to sort an array without using sort method in java

Sort characters alphabetically in a string in java

Reverse an array without using another array in java

Reverse an array in java using for loop

Java code to rename all files in a folder

Program to find area of rectangle using inheritance in java

Java program to find area of circle and rectangle using interface

Java program to calculate area of circle rectangle and triangle using switch

Swap two variables in java in single line

Swap three variables in java without temporary variable

Create Dynamic 2D array in java

How to sort ArrayList in java

How to sort TreeSet in descending order in java

TreeMap sort by values in java

TreeMap comparator() method in java with examples

Java program to remove consonants from a string

GCD of two numbers in java

Find GCD of three numbers in java

Java program to print armstrong numbers between given range

Java program to calculate sum of even and odd numbers in an array

Java program to print odd and even numbers between 1 and 100

Count number of even and odd elements in an array in java

Java program to put even & odd elements of an array in 2 separate arrays

How to remove last element from ArrayList in java

Java program to find maximum and minimum number without using array

How to remove duplicates from array in java without using collections

Java do while loop with user input

Java program to add two numbers using bufferedreader

String palindrome in java using stringbuffer

String palindrome in java using array

How to check if a string is in alphabetical order in java

Arrange words of a sentence in alphabetical order in java

Java program to find largest of four numbers using nested if

Java program to find smallest of three numbers using ternary operator

Write a java program to add two binary numbers

About

Let's learn basic java programs.