What do you want to save?
Add Code snippet
New code examples
-
Java 2022-02-24 23:55:01
how to get single value from input string in java
public static void main(String[] args) { // TODO Auto-generated method stub Scanner reader = new Scanner(System.in); System.out.print("Enter the strings > "); String s1 = new String(reader.nextLine()); String[] str = s1... Add solution -
Java 2022-01-30 18:01:50
Write code to declare an array that will hold calendar months (.e. January to December) java
public class App { public static String months[]; public static void main ( String[] args ) { months = new String[ 13 ]; months[ 0 ] = null; months[ 1 ] = "January"; months[ 2 ] = "February"; ... Add solution -
Java 2022-01-27 19:11:47
java fast input
// this program gives you fast input, especially for competitive programming import java.util.*; import java.io.*; public class PutYourClassNameHere { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static StringTokeniz... Add solution