What do you want to save?
Add Code snippet
New code examples
-
Java 2021-11-06 09:07:09
how to delete an element from an array in java
import java.util.Scanner; public class ElemRemoval { public static void main(String[] args) { Scanner in = new Scanner(System.in); int[] intArr = {1, 2, 5, 12, 7, 3, 8}; System.out.print("Enter Element to be deleted : &q... Add solution -
Java 2021-11-04 07:47:10
role of scanner class in java
The Java Scanner class is widely used to parse text for strings and primitive types using a regular expression. It is the simplest way to get input in Java. By the help of Scanner in Java, we can get input from the user in primitive types such as int, ... Add solution -
Java 2021-10-29 12:08:13
deleting elements of an array in java
import java.util.Scanner; public class ElemRemoval { public static void main(String[] args) { Scanner in = new Scanner(System.in); int[] intArr = {1, 2, 5, 12, 7, 3, 8}; System.out.print("Enter Element to be deleted : ... Add solution -
Java 2021-10-26 08:51:12
count occurrences in seven integers using java single dimension arrays
import java.util.Scanner; public class SevenNumbersCount { public static int count(int[] arr, int num) { int count = 0; for(int i = 0; i < arr.length; ++i) { // go through all elements in array if(arr[i] == num) { //... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5