Package anderix.io
Class Console
java.lang.Object
anderix.io.Console
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
readln()
static String
static String
readPassword
(String prompt) static void
write
(boolean b) static void
write
(byte b) static void
write
(char c) static void
write
(double d) static void
write
(float f) static void
write
(int i) static void
write
(long n) static void
write
(short s) static void
static void
static void
writeln()
static void
writeln
(boolean b) static void
writeln
(byte b) static void
writeln
(char c) static void
writeln
(double d) static void
writeln
(float f) static void
writeln
(int i) static void
writeln
(long n) static void
writeln
(short s) static void
static void
-
Method Details
-
write
public static void write(boolean b) -
write
public static void write(byte b) -
write
public static void write(short s) -
write
public static void write(char c) -
write
public static void write(int i) -
write
public static void write(long n) -
write
public static void write(float f) -
write
public static void write(double d) -
write
-
write
-
writeln
public static void writeln() -
writeln
public static void writeln(boolean b) -
writeln
public static void writeln(byte b) -
writeln
public static void writeln(short s) -
writeln
public static void writeln(char c) -
writeln
public static void writeln(int i) -
writeln
public static void writeln(long n) -
writeln
public static void writeln(float f) -
writeln
public static void writeln(double d) -
writeln
-
writeln
-
readln
-
readln
-
readPassword
- Parameters:
prompt
- The prompt to display to the user- Returns:
- The password as entered by the user
-