Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
de.webdings.tools.CL
public class CL
extends java.lang.Object
Method Summary | |
static float |
|
static int |
|
static long |
|
static short |
|
static String |
|
static boolean |
|
static void |
|
static void |
|
static void |
|
static void |
|
static void |
|
static void |
|
static void |
|
static void |
|
static void |
|
static void |
|
static void |
|
static void |
|
static void |
|
static void |
|
static void |
|
static void |
|
static void |
|
static void |
|
static void |
|
static void |
|
static void |
|
static void |
|
public static float inFloat() throws IOException, NumberFormatException
- Returns:
- a float read from keyboard user input.
public static int inInt() throws IOException, NumberFormatException
- Returns:
- an int read from keyboard user input.
public static long inLong() throws IOException, NumberFormatException
- Returns:
- a long read from keyboard user input.
public static short inShort() throws IOException, NumberFormatException
- Returns:
- a short read from keyboard user input.
public static String inString() throws IOException
- Returns:
- a string read from keyboard user input.
public static boolean inYN() throws IOException
is used for simple "yes or no"-Questions. It reads user input and returnstrue
for "y", "Y", "yes", "YES", "yES", "yEs", "YEs" andfalse
for "n", "N", "no", "NO", "nO", "No".
For anything else it will output "bad argument!" and restart the method.
- Returns:
- true for yes and false for no
public static void lineOut()
Prints out an empty line followed by a line break. Identical tonewLine()
.
public static void lineOut(Object v)
Prints out the contents of v to the console, followed by a line break.
- Parameters:
v
- The variable to be given out by the program
public static void lineOut(String v)
Prints out the contents of v to the console, followed by a line break.
- Parameters:
v
- The variable to be given out by the program
public static void lineOut(boolean v)
Prints out the contents of v to the console, followed by a line break.
- Parameters:
v
- The variable to be given out by the program
public static void lineOut(char v)
Prints out the contents of v to the console, followed by a line break.
- Parameters:
v
- The variable to be given out by the program
public static void lineOut(char[] v)
Prints out the contents of v to the console, followed by a line break.
- Parameters:
v
- The variable to be given out by the program
public static void lineOut(double v)
Prints out the contents of v to the console, followed by a line break.
- Parameters:
v
- The variable to be given out by the program
public static void lineOut(float v)
Prints out the contents of v to the console, followed by a line break.
- Parameters:
v
- The variable to be given out by the program
public static void lineOut(int v)
Prints out the contents of v to the console, followed by a line break.
- Parameters:
v
- The variable to be given out by the program
public static void lineOut(long v)
Prints out the contents of v to the console, followed by a line break.
- Parameters:
v
- The variable to be given out by the program
public static void lineOut(short v)
Prints out the contents of v to the console, followed by a line break.
- Parameters:
v
- The variable to be given out by the program
public static void newLine()
Prints out an empty line followed by a line break. Identical tolineOut()
.
public static void out(Object v)
Prints out the contents of v to the console.
- Parameters:
v
- The variable to be given out by the program
public static void out(String v)
Prints out the contents of v to the console.
- Parameters:
v
- The variable to be given out by the program
public static void out(boolean v)
Prints out the contents of v to the console.
- Parameters:
v
- The variable to be given out by the program
public static void out(char v)
Prints out the contents of v to the console.
- Parameters:
v
- The variable to be given out by the program
public static void out(char[] v)
Prints out the contents of v to the console.
- Parameters:
v
- The variable to be given out by the program
public static void out(double v)
Prints out the contents of v to the console.
- Parameters:
v
- The variable to be given out by the program
public static void out(float v)
Prints out the contents of v to the console.
- Parameters:
v
- The variable to be given out by the program
public static void out(int v)
Prints out the contents of v to the console.
- Parameters:
v
- The variable to be given out by the program
public static void out(long v)
Prints out the contents of v to the console.
- Parameters:
v
- The variable to be given out by the program
public static void out(short v)
Prints out the contents of v to the console.
- Parameters:
v
- The variable to be given out by the program
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU
General Public License along with this program;
if not, write to the
Free Software Foundation, Inc.,
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.