What do you want to save?
Add Code snippet
New code examples
-
Java 2021-11-08 21:05:14
Reverse a string in java without using reverse function
// Reverse a string in java without using reverse function import java.util.Scanner; public class ReverseWithoutFunction { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Please en... Add solution -
Java 2021-11-08 14:32:12
how to input in java
Scanner sc = new Scanner(System.in); // Create a Scanner object String userName = sc.nextLine();//read input string int age = sc.nextInt(); //read input integer long mobileNo = sc.nextLong(); //read input long double cgpa = sc.nextDouble(); //read input ... Add solution -
Java 2021-11-07 09:39:33
input java
import java.util.Scanner; // import scanner Scanner myScanner = new Scanner(System.in); // Make scanner obj String inputString = myScanner.nextLine(); // Take whole line boolean inputBoolean = myScanner.nextBoolean(); //Boolean input long inputLong ... Add solution -
Other 2021-11-07 09:05:21
ip subnet calculator code
import java.util.*; import java.util.regex.Pattern; import java.math.*; import java.text.NumberFormat; import java.text.ParseException; import java.net.*; public class example { public static void main(String[] args) { Scanner Scan = new Sc... Add solution -
Java 2021-11-07 07:30:21
Java Program to find the perimeter of the circle
@Test public void findPerimeterOfTheCircleProgram12() { Scanner scanner = new Scanner(System.in); System.out.println("Enter the RADIUS of the Circle: "); double radius = scanner.nextDouble(); scanner.close(); // Logic for printing the... Add solution -
Java 2021-11-06 13:13:12
ava program to add two numbers taking input from user
import java.util.Scanner;public class Main{public static void main(String[] args){int a, b, sum;Scanner sc = new Scanner(System.in);System.out.println("Enter First Number: ");a = sc.nextInt();System.out.println("Enter Second Number: ")... Add solution -
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