
Simple Program Code Rating: 9,1/10 8184 reviews
To understand a programming language you must practice the programs, this way you can learn the language faster. Stronghold crusader for pc free download. This page includes java programs on various java topics such as control statements, loops, classes & objects, functions, arrays etc. All the programs are tested and provided with the output. If you new to java and want to learn java before trying out these program, then read my Core Java Tutorials.
Dia can read and write a number of different raster and vector image formats. Dia can be scripted and extended using Python. 2d animation free download windows. More than a thousand readymade objects help to draw professional diagrams. Software developers and database specialists can use Dia as a CASE tool to generate code skeletons from their drawings.
# This program adds up integers that have been passed as arguments in the command. Print ('Please supply integer arguments') 9 lines: Opening files # indent your Python code to put into an email import glob # glob supports Unix style pathname extensions. Import csv # need to define cmp function in Python 3 def cmp(a, b): return (a. Every example program includes the description of the program, C# code as well as output of the program. All examples are compiled and tested on Visual Studio. These examples can be as simple and basic as “Hello World” program to extremely tough and advanced C# programs. So, they are suitable for any user (dummies, beginners or advanced users).
Java Programs
Java Basic Programs |
---|
Java Program to Add two Numbers |
Java Program to Check Even or Odd Number |
Java Program to add two binary numbers |
Java Program to add two complex numbers |
Java Program to Multiply two Numbers |
Java Program to check Leap Year |
Java Program to check whether input character is vowel or consonant |
Java Program to calculate compound interest |
Java Program to calculate simple interest |
Java Program to find quotient and remainder |
Java Program to calculate power of a number |
Java Strings Programs |
---|
Java Program to Convert char to String and String to Char |
Java Program to find duplicate characters in a String |
Java Program to check Palindrome String using Stack, Queue, For and While loop |
Java Program to sort strings in alphabetical order |
Java Program to reverse words in a String |
Java Program to perform bubble sort on Strings |
Java program to find occurrence of a character in a String |
Java program to count vowels and consonants in a String |
Java Arrays Programs |
---|
Java Program to Calculate average of numbers using Array |
Java Program to Add the elements of an Array |
Java Program to reverse an array |
Java Program to sort an array in ascending order |
Java Program to convert char Array to String |
Java Program to Add Two Matrix Using Multi-dimensional Arrays |
Java Recursion Programs |
---|
Java Program to Reverse a number using for, while loop and recursion |
Java Program to check Palindrome string using Recursion |
Java Program to Reverse a String using Recursion |
Java Program to find Factorial of a number using Recursion |
Java Programs on Numbers |
---|
Java Program to display first 100 prime numbers |
Java Program to display prime numbers between 1 and 100 or 1 and n |
Java program to break integer into digits |
Java Program to check Prime Number |
Java Program to check if a given number is perfect square |
Java Program to find square root of a number without sqrt method |
Java Program to print Armstrong numbers between a given range |
Java Program to Find Sum of Natural Numbers |
Java Program to check if a number is Positive or Negative |
Java Program to generate Random Number |
Java Program to check Armstrong number |
Java Program to find GCD of two numbers |
Java Program to find Largest of three numbers |
Java Program to swap two numbers using bitwise operator |
Java Program to find smallest of three numbers using ternary operator |
Java Program to find largest of three numbers using ternary operator |
Java Program to display alternate prime numbers |
Java Program to display even numbers from 1 to n or 1 to 100 |
Java Program to display odd numbers from 1 to n or 1 to 100 |
Java Input/Output Programs |
---|
Java Program to read number from Standard Input |
Java Program to Get IP Address |
Java Program to get Input From User |
Java Programs on Geometrical Calculations |
---|
Java Program to Calculate Area of Rectangle |
Java Program to Calculate Area of Square |
Java Program to Calculate the area of Triangle |
Java Program to Calculate Area and Circumference of Circle |
Java Sorting/Searching Programs |
---|
Java Program for bubble Sort Ascending or Descending Order |
Java Program for Linear Search |
Java Program for Binary Search |
Java Program for Selection Sorting |
Java Conversion Programs |
---|
Java Octal to Decimal conversion |
Java Program to Convert Decimal to Octal |
Java hexadecimal to decimal conversion |
Java Program to convert decimal to hexadecimal |
Java binary to octal conversion |
Java String to boolean |
Java program to convert boolean to String |
Java int to char conversion |
Java char to int conversion |
Java char to string conversion |
Java long to int conversion |
Java int to long conversion |
Java Program to Convert Decimal to Binary |
Java Program to convert binary to Decimal |
Java Program to find ASCII value of a character |
Java program for String to int conversion |
Java program to convert int to String |
Java program for string to double conversion |
Java program to convert double to String |
Java program to convert String to long |
Java program to convert long to String |
Other Java Programs |
---|
Java Program to print Floyd’s triangle |
Java program to print Pascal triangle |
Java Program to display Fibonacci series using loops |
Java Program to find Factorial using loops |
Java Program to make a calculator using switch case |
Java Program to Calculate grades of Student |
Java Program to perform Arithmetic Operation using Method Overloading |
Java Program to find Area of Geometric figures using method overloading |