readLine() Error...kinda
Hey.
When I do multiple readLines in a row, the second few doesnt seem to work. Here is my code:
name = d_br.readLine();
GameClientApplet.user.setName(name);
pass = d_br.readLine();
GameClientApplet.user.setPass(pass);
hp = d_br.read();
GameClientApplet.user.setHP(hp);
armor = d_br.read();
GameClientApplet.user.setArmor(armor);
xp = d_br.read();
Well.... for one thing, (and you may have already seen it by now) all your calls after the first one are to read(), not readLine().. which only reads one character.Assuming that -isn't- actually the problem, what exactly did you mean by "doesnt seem to work" ?
Yes i know. I was gonna do parseint, but then i remembered that chars were read in int anyway. By not working, i mean totally ignore. Just skips over like its not there.
If i have a name of "Name Here" and a pass of "Pass Here", then the output i get, after that block reads everything, is "*** Here"...strangly enough lol.