When you present a problem here pertaining to error messages you are getting, cut and paste those error messages into your post. Be sure to include the part of the messages that says what line the error occurred on.
Line 13: Can't have a method within a method.
Line 14: Don't declare two or more variables at the same time. Put each on its own line.
C. Brown.... That's elegant, Thank you. I haven't learned the format stuff yet. This is my first program that wasn't homework from the book. This is only my 2nd week working in Java.... and right now I'm waiting on a new keyboard... The 'a' key is broken on this one so every time I use it, I have to Ctrl-v a copy. Interesting fact about this forum software.... Alt-09 (starting Alt-097) opens up an italics pop-up. Thanks again. -d.
Ron, I haven't tried.... waiting on new keyboard which is due in tomorrow. Thought range for Short was to 32,767. I sucessfull wrote a program that wrote a file containing 00 through FF. Next project is to try loading it in and processing each byte.
David Cone wrote:The 'a' key is broken on this one so every time I use it, I have to Ctrl-v a copy.
If you get sick of doing that you could write your draft in another editor using ~ in place of 'a' and then when you're all done do a global replace before you cut and past the entire thing to The Ranch.