java

java

How to find the velocity in Java using user-give values

Java program to find the velocity using user-given values. There are two different formula to find the velocity. This post will show you how to do that in Java.

Read
java

Java program to find the sum of 0, 1, 1, 2, 3, 5, 8.. or Fibonacci series

Java program to find the sum of Fibonacci series or series 0, 1, 1, 2, 3, 5, 8... upto a given distance n. We will take the value of n as input from the user.

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