What do you want to save?
Add Code snippet
New code examples
-
Java 2022-03-11 17:50:03
armstrong numbers problem java
// Java program to print all armstrong numbers between given range import java.util.Scanner; public class ArmstrongNumbersGivenRange { public static void main(String[] args) { int number, startNumber, endNumber, a, rem, n, count = 0; S... Add solution -
Java 2022-03-11 11:35:19
Java program to print prime numbers from 2 to n
// Java program to print prime numbers from 2 to n import java.util.Scanner; public class PrimeNumberFrom2Ton { public static void main(String[] args) { int loop, max; System.out.print("Please enter highest (maximum) number: "... Add solution -
Java 2022-03-02 23:20:19
identifier in java
Identifiers are names in java program. Identifiers can be class name, method name or variable name. Rules for defining identifiers in java: 1) Identifiers must start with letter, Underscore or dollar($) sign. 2) Identifiers can’t start with numb... Add solution -
Java 2022-03-01 04:40:02
Java program to find average of n numbers
// Java program to find average of n numbers import java.util.Scanner; public class FindAverageOfNNumbers { public static void main(String[] args) { int num, count = 1; float a, average, total = 0; Scanner sc = new Scanner(S... Add solution -
Java 2022-02-12 07:20:51
ip adress format control java
import java.util.regex.Matcher; import java.util.regex.Pattern; // Java program to validate an IPv4 address class Main { // an IPv4 address private static final String INET4ADDRESS = "172.8.9.28"; private static final String IPV4_REGEX = ... Add solution -
Java 2022-02-09 12:35:24
java equal method
In general both equals() and == operator in Java are used to compare objects to check equality but here are some of the differences between the two: 1) .equals() and == is that one is a method and other is operator. 2) We can use == operator for referen... Add solution -
Java 2022-02-02 18:35:01
what does ? means in java
if (you.mean.equals("java programming language")) { System.out.println("Java is a class-based, object-oriented programming language"); } else if (you.mean.equals("java coffee")) { System.out.print("the term java come... Add solution -
Java 2022-02-02 07:00:22
How to remove element from arraylist in java
// java program on ArrayList remove(int index) method example import java.util.ArrayList; import java.util.List; public class ArrayListRemoveIndex { public static void main(String[] args) { List<Integer> al = new ArrayList<>(); ... Add solution
Best helpers
Ranking is empty