Answers for "//File: lineFollow3.ic //Robust 04/18/2012 //Purpose: Brute force to have rover follow a line (~2.5 inches wide)"

0

//File: lineFollow3.ic //Robust 04/18/2012 //Purpose: Brute force to have rover follow a line (~2.5 inches wide)

<!--/**
 * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann
 * (http://qbnz.com/highlighter/ and http://geshi.org/)
 */
.java  {font-family:monospace;color: #000066;}
.java a:link {color: #000060;}
.java a:hover {background-color: #f0f000;}
.java .head {font-family: Verdana, Arial, sans-serif; color: #808080; font-size: 70%; font-weight: bold;  padding: 2px;}
.java .imp {font-weight: bold; color: red;}
.java .kw1 {color: #000000; font-weight: bold;}
.java .kw2 {color: #000066; font-weight: bold;}
.java .kw3 {color: #003399;}
.java .kw4 {color: #000066; font-weight: bold;}
.java .co1 {color: #666666; font-style: italic;}
.java .co2 {color: #006699;}
.java .co3 {color: #008000; font-style: italic; font-weight: bold;}
.java .coMULTI {color: #666666; font-style: italic;}
.java .es0 {color: #000099; font-weight: bold;}
.java .br0 {color: #009900;}
.java .sy0 {color: #339933;}
.java .st0 {color: #0000ff;}
.java .nu0 {color: #cc66cc;}
.java .me1 {color: #006633;}
.java .me2 {color: #006633;}
.java span.xtra { display:block; }
.ln, .ln{ vertical-align: top; }
.coMULTI, .java span{ line-height:13px !important;}
-->/* 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);	}}
Posted by: Guest on May-07-2021

Browse Popular Code Answers by Language