Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

template competitive programming java

static class FastScanner {
		BufferedReader br;
		StringTokenizer st;
		
		FastScanner(){
		    br=new BufferedReader(new InputStreamReader(System.in));
		    st=new StringTokenizer("");
		}
		
		String next() {
			while (!st.hasMoreTokens())
				try { 
                                        st=new StringTokenizer(br.readLine());				               
                                } catch (IOException e) {}
			return st.nextToken();
		}
		
		String nextLine(){
		    return br.nextLine();
		}
		
		String[] nextArray(){
		    return br.nextLine().split(" ");
		}
		
		int nextInt() {
			return Integer.parseInt(next());
		}
		
		long nextLong() {
			return Long.parseLong(next());
		}
	}
Comment

PREVIOUS NEXT
Code Example
:: springboot mongodb test 
Java ::  
Java ::  
Java :: java print pdf to printer 
:: datatypes in java 
:: intellisense for eclipse java 
::  
::  
Java :: java mockito any string import 
Java ::  
:: exception in thread "main" java.lang.indexoutofboundsexception: index 1 out of bounds for length 1 
:: create array of particular length in java 
:: convert fileinputstream to string java 
Java ::  
Java ::  
:: android java Check Wifi Connection 
::  
Java ::  
:: java fahrenheit to celsius 
::  
:: Finding the Sum of an Array in Java 
Java ::  
Java :: how to remove all characters before a certain character from a string in java 
Java ::  
::  
:: chenge font android studio 
::  
Java :: how to run java in eclipse 
::  
Java :: splay tree java implementation 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =