- Write a Java program to print ‘Hello World!’ on screen
- Write a Java program to print the sum of two numbers
- Write a Java program that takes two numbers and display the product of two numbers
- Write a Java program to print the sum, multiply, subtract, divide and remainder of two numbers
- Write a Java program that takes five numbers as input to calculate and print the average of the numbers
- Write a Java program to swap two variables
- Write a Java program to convert a decimal number to binary numbers
- Write a Java program to convert a binary number to decimal number
- Write a Java program to check whether Java is installed on your computer or not
- Write a Java program and compute the sum of the digits of an integer
- Write a Java program to compare two numbers
- Write a Java program to count the letters, spaces, numbers and other characters of an input string
- Write a Java program to print the ascii value of a given character
- Write a Java program that accepts an integer (n) and computes the value of n+nn+nnn
- Write a Java program to display the system time
- Write a Java program to print the odd numbers from 1 to 20
- Write a Java program to print the even numbers from 1 to 20
- Write a Java program to convert a string to an integer
- Write a Java program to convert seconds to hour, minute and seconds
- Write a Java program to compute the sum of the first 100 prime numbers
- Write a Java program to swap the first and last elements of an array and create a new array
- Write a Java program to count the number of even and odd elements in a given array
- Write a Java program to compute the square root of an given integer
- Write a Java program to check if a positive number is a palindrome or not
- Write a Java program to add two numbers without using any arithmetic operators
- Write a Java program to add all the digits of a given positive integer