Norm Radder

+ Follow
since Aug 10, 2005
Worked mostly with IBM mainframe assembly code. Loved IBM's VM OS.
Eastern Florida
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Norm Radder

Whenever I put in a floating number, even with only one decimal, the program crashes.

Can you copy the section of the logcat where the error message is shown and paste it here?
It should show the source line number and the name of the method that was called.

Where is the parse method for floating numbers?  I only see the parseInt method which is for integers.
4 hours ago
Suggested comments to document the above toString method:
Builds a String with repeated contents of word (one for each letter in word) with separating spaces.
String has ending space the could be removed by calling the trim method.
8 hours ago
If you have a definition error that looks ok to your eye but the compiler sees an error, use the editor's search method with Match-Case option to Find where the definition is.
A Find on 'access' would fail.  Find on "Access" would find the definition.
8 hours ago

Thanks, this helped me in reading the whole response.

Did the message end with a newline character?  The readLine method needs that to finish.  See my earlier post.

the loop is not terminating.

The connection is still open and the code is waiting for more data to read.  Close the connection on the sending side to end it.

difference between read and readline

Read the API doc for those methods.
read reads one char
readLine reads characters up to a newline character
10 hours ago

Above is my code. When I run I am getting only few lines but not all the lines.

As The OP said.  
I don't think the posted code was copied from his program because it does not compile.  Makes you wonder what else is different if the code was just typed in from memory.
1 day ago
Can you list the steps a user/tester must take to see the problem?
I enter number in the textfield at the bottom of the window and press the INSERTAR button,
Su balance actual es: 123.4 is displayed at the top of the textarea.

What do I need to do next to see the problem?
1 day ago
It is hard to test the code without code that compiles and executes and shows the problem.
1 day ago
Can you make a small, simple, complete program that compiles. executes and shows the problem?
1 day ago

I have a NullPointerException

What variable has the null value?
1 day ago

I'm not fond of 11's new Javadoc layout

I agree.  That new layout is much harder to navigate through.  Why did they change it?
1 day ago
Try a little debug code to see what is being read:

Note: I get a compiler error with the code from the first post:
1 day ago

Note: Using i for the variable name could be confusing as i is often coded as the loop index, not the value from the array

2 days ago

Mo 1 3  

Where is that line printed?  What are the names of the variables with the values 1 and 3?

It would be easier to find in the source code if it included some unique text:

Mo Total Games=1, Total guesses=3

How are you trying to debug the program to see why it does what it does?  Add some print statements that print the values of the variables  every time they are changed and used.  The print out should should you where the problem is.
4 days ago
Can you post the program's output that shows what you are asking about?
Be sure to add some comments where it is shown.
4 days ago
Are all the lines properly terminated?  The API doc for the readLine method says:

Reads a line of text. A line is considered to be terminated by any one of a line feed ('\n'), a carriage return ('\r'), or a carriage return followed immediately by a linefeed.

The readLine can hang waiting for an end of line
5 days ago