Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript (rhino 1.7.9) sample

importPackage(java.io);
importPackage(java.lang);
 
var reader = new BufferedReader( new InputStreamReader(System['in']) );
 
while(true) {
	var line = reader.readLine();
	if(line == null || line == "42") {
		break;
	} else {
		System.out.println(line);
	}
}
Source by ideone.com #
 
PREVIOUS NEXT
Tagged: #JavaScript #sample
ADD COMMENT
Topic
Name
4+8 =