public class Console extends Object
Constructor and Description |
---|
Console() |
Modifier and Type | Method and Description |
---|---|
File |
getFile() |
String |
interpreter(String strEval)
Evaluates the given string-expression and returns the result in
OutputForm |
static void |
main(String[] args) |
void |
printPrompt(PrintStream out,
String prompt)
prints a prompt on the console but doesn't print a newline
|
String |
readString(PrintStream out)
read a string from the console.
|
String |
readString(PrintStream out,
String prompt)
read a string from the console.
|
void |
setFile(File file) |
public static void main(String[] args)
public String interpreter(String strEval)
OutputForm
strEval
- public void printPrompt(PrintStream out, String prompt)
out
- prompt
- the prompt string to displaypublic String readString(PrintStream out)
out
- Description of Parameterpublic String readString(PrintStream out, String prompt)
prompt
- the prompt string to displayout
- Description of Parameterpublic void setFile(File file)
file
- public File getFile()
null
Copyright © 2015. All rights reserved.