Mikey2520 wrote
As you cans ee in the following video:
https://www.youtube.com/watch?v=atUD_3W0fDE&feature=youtu.beMy string test did not have "Please type 'JACK' and press enter: " in the readLine test and did not have "Please type '-32123' and press enter: " for readInt test.
Here is my code and thank anyone who can solve it.
/**
*
Prints the message on the screen, reads the next line
* (until a newline character) from the keyboard, and returns its value.
*/
function String readLine(String message) {
var String s, temp;
var int maxLength;
var char c;
let s = String.new(10);
let maxLength = 10;
while(true){
let c = Keyboard.readChar();
Your readLine() function completely ignores the "message" argument.
Please edit your post to remove the source code when you have fixed your problem.
--Mark