In this post, we will write two java programs, first java programs checks whether the specified number is positive or negative. The second program takes… [Read More]
Java Program to check Leap Year
Here we will write a java program to check whether the input year is a leap year or not. Before we see the program, lets… [Read More]
Java Program to find ASCII value of a Character
ASCII is a code for representing English characters as numbers, each letter of english alphabets is assigned a number ranging from 0 to 127. For… [Read More]
Java Program to Multiply Two Numbers
When you start learning java programming, you get these type of problems in your assignment. Here we will see two Java programs, first program takes… [Read More]
Java Program to read integer value from the Standard Input
In this program we will see how to read an integer number entered by user. Scanner class is in java.util package. It is used for… [Read More]
Java Program to Add two Numbers
In this tutorial, you will learn how to write a Java program to add two numbers. This is one of the basic program which helps… [Read More]
Java program for binary to decimal conversion
There are two following ways to convert binary number to decimal number: 1) Using Integer.parseInt() method of Integer class.2) Do conversion by writing your own… [Read More]
Java Program for Decimal to Hexadecimal Conversion
There are two following ways to convert a decimal number to hexadecimal number: 1) Using toHexString() method of Integer class.2) Do conversion by writing your… [Read More]
Java Program for Decimal to Octal Conversion
In this guide, we will discuss the following two ways to convert decimal to octal in Java. Using predefined method toOctalString(int num) of Integer class… [Read More]
Java program for bubble sort in Ascending & descending order
In this tutorial we are gonna see how to do sorting in ascending & descending order using Bubble sort algorithm. Bubble sort program for sorting… [Read More]
- « Previous Page
- 1
- …
- 8
- 9
- 10
- 11
- 12
- 13
- Next Page »