java programs
- 17 April
Convert Roman Number to Integer in Java
Learn about how to convert Roman number to Integer in java.
- 05 April
Count occurrences of Character in String
In this article, we will look at a problem: Given an Input String and a Character, we have to Count Occurrences Of character in String. For Example, If the Given String is : "Java2Blog" and we have to count the occurrences of Character ‘a’ in the String. Therefore, Count of 'a' is : 2 , […]
- 30 December
Rock Paper Scissors Game in Java
Learn about how to implement Rock Paper Scissors game in java.
- 25 December
Find automorphic number in java
Learn about how to find automorphic number in java using different methods
- 24 December
How to capitalize first letter in java
Learn about how to capitalize first letter in java.
- 09 October
Find first and last digit of a number
In this article, we are going to find first and last digit of a number. To find first and last digit of any number, we can have several ways like using modulo operator or pow() and log() methods of Math class etc. Let’s see some examples. Before moving to example, let’s first create an algorithm […]
- 03 October
Happy Number program in Java
In this article, we are going to learn to find Happy Number using Java. Let’s first understand, what is Happy Number? What is a Happy Number? A number which leaves 1 as a result after a sequence of steps and in each step number is replaced by the sum of squares of its digit. For […]
- 1
- 2
- 3
- …
- 8
- Nextkeyboard_arrow_right