## Java program to determine whether a given number is a palindrome number or not

Problem: Write a program to input a number from the user and tell whether it is a palindrome number or not. A palindrome number is a number that is same after reverse. For example: 545, 151, 34543. 343, 1123211 are palindrome numbers. Code: 1 2 3 4 5 6 7 8 9 10 11 12 … Read more Java program to determine whether a given number is a palindrome number or not

## Java program to determine whether the given number is an armstrong number or not

Problem: Input a number from the user and tell whether it is an armstrong number or not. Armstrong number is a number which is equal to the sum of cubes of its digits.  For example 371 is an armstrong number because: 33 73 13=27 343 1=371 In the same way 0 and 1 are also … Read more Java program to determine whether the given number is an armstrong number or not

## Java program to find the ASCII value of a character

This is a very simple program. It will be used to find the ASCII value of any character. Problem: Input a character from the user and display its ASCII value on the screen. Code: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 /** * @author Hafiz Muhammad Umer */ … Read more Java program to find the ASCII value of a character

## Java program to determine if there are exactly three question marks between each pair of numbers that add to 10 in the given string

It is very interesting problem I got as a screenshot I captured from somewhere I do not remember. The screenshot tells that the problem is from CoderByte. I can not give you the link to the problem because I do not know where it is on the website. I am presenting here the problem with … Read more Java program to determine if there are exactly three question marks between each pair of numbers that add to 10 in the given string

## Java program to input some integers from the user and display them in descending order

In this program we will input some integers from the user and display them in descending order on the screen. But we have a condition that we have to use less variables and loops in the program and only one array.Problem: Write a program that inputs some integers from the user and displays them in … Read more Java program to input some integers from the user and display them in descending order

## Java program to find average of two numbers

In this program we will find the average of two numbers. To find average of two numbers, they are added and their sum is divided by two. Problem: Input two numbers from the user and display their average on the screen. Code: 1 2 3 4 5 6 7 8 9 10 11 12 13 … Read more Java program to find average of two numbers

## Java program to find Sum of two numbers

This is our second program. It will input two numbers from the user and display their sum on the screen. Problem: Input two numbers from the user and display their sum on the screen. Code: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 /** * … Read more Java program to find Sum of two numbers

## Hello World java program

This is our first program in Java. It will print “Hello World!” to the screen. Being the first program, it is very easy. It is basically used to illustrate the basic syntax and program structure of Java. Problem: Display “Hello World!” on the screen. Code: 1 2 3 4 5 6 7 8 9 10 /* … Read more Hello World java program