Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

Java (HotSpot 12) sample

/* package whatever; // don't place package name! */
 
import java.io.*;
 
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		BufferedReader r = new BufferedReader (new InputStreamReader (System.in));
		String s;
		while (!(s=r.readLine()).startsWith("42")) System.out.println(s);
	}
}
Comment

PREVIOUS NEXT
Code Example
Java :: rerun main method 
Java :: io fole scanner object syntax 
Java :: string expression execution for java 
Java :: In similar fashion we will use (RIGHT – SHIFT) to retrieve bits from val 6 at a time 
Java :: print current user roles in java 
Java :: maven show runtime classpath 
Java :: public class MyClass { public static void main(String[] args) { System.out.println("Hello World"); } } 
Java :: Java byte Keyword 
Java :: java tostring methode überschreiben 
Java :: Returning methods 
Java :: Java Implement SAM with anonymous classes in java 
Java :: spring boot return 201 created 
Java :: java virtual override 
Java :: java get end of date 
Java :: what does the continue keyword do in java 
Java :: call method of another class without creating instance in java android 
Java :: least significant bit java 
Java :: Java how to handle HTTP GET request after establishing TCP connection 
Java :: spigot wolf death message 
Java :: Array first Occurence 
Java :: Java Single element Annotations 
Java :: java dateigröße abfragen 
Java :: this java 
Java :: ternary search in java 
Java :: change the default port in spring boot codegrepper 
Java :: httpsession vs cookie servlet 
Java :: hdfs get size of directory java 
Java :: strings in java are represented as 
Java :: java optional input for funktions 
Java :: get beginning and end of selected text in java 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =