java

java

3 ways in Java to find the sum of Fibonacci series

3 different ways in Java to find the sum of Fibonacci series or series 0, 1, 1, 2, 3, 5, 8... of the first n elements.

Read
java

Java program to check if a number is special or not

Java program to check if a number is special or not. It will take one number as input from the user and print if it is a special number or not.

Read
java

Create a Rectangle class in Java and calculate area, perimeter

Java program to create a Rectangle class that can calculate the area and perimeter using different methods.

Read
java

Java program to find special numbers in a range

Java program to find special numbers in a range. A number is called special if the sum of factorials of digits of the number is equal to itself.

Read
java

Can Enum implements interfaces in Java

Can Enum implements interfaces in Java or not. Enum is used to define a list of constants in Java. Learn this with an example.

Read
java

5 Different ways to append text to a file in Java

Different ways in Java to append text or strings to a file. We will use FileOutputStream, BufferedWriter, PrintWriter, FileWriter and Files to do that.

Read
java

Java program to convert a boolean array to string array

Java program to convert a boolean array to string array. We will use String.valueOf and Boolean.toString methods to do the conversion.

Read
java

Java HashMap.merge() method explanation with examples

Java HashMap.merge() method is used to merge an item to an existing HashMap in Java. Learn how to use HashMap.merge() method with example.

Read
java

Java program to reverse an array without using an additional array

Java program to reverse an array without using an additional array or learn how to do in place array reverse in Java.

Read
java

Java program to sort array elements by frequency

Java program to sort elements of an array by frequency. This program will sort the numbers in descending order.

Read