|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cornell.cs.sam.ui.SamText
public class SamText
This is a front end for executing a SaM program from a console
| Constructor Summary | |
|---|---|
SamText()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
char |
readChar()
Request character input from the video implementation |
float |
readFloat()
Request floating point input from the video implementation |
int |
readInt()
Requests integer input from the video implementation |
java.lang.String |
readString()
Request String input from the video implementation |
void |
writeChar(char a)
Writes character output to the video implementation |
void |
writeFloat(float a)
Writes floating point output to the video implementation |
void |
writeInt(int a)
Writes integer output to the video implementation |
void |
writeString(java.lang.String a)
Writes string output to the video implementation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SamText()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public int readInt()
Video
readInt in interface Videopublic java.lang.String readString()
Video
readString in interface Videopublic char readChar()
Video
readChar in interface Videopublic float readFloat()
Video
readFloat in interface Videopublic void writeInt(int a)
Video
writeInt in interface Videoa - The integer to be writtenpublic void writeFloat(float a)
Video
writeFloat in interface Videoa - The float to be writtenpublic void writeChar(char a)
Video
writeChar in interface Videoa - The character to be writtenpublic void writeString(java.lang.String a)
Video
writeString in interface Videoa - The string to be written
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||