Hi All, Well, I have been studying Java for just over a month and I have almost finished my first program. But as you see I am stuck. Below is a copy of the code for a program I wrote MANY years ago in Tandy Basic, written in Java. I don't understand why my System.out.println call won't work. A word of why would help. I don't want you to fix it just let me know how to fix it myself. Any help would be great. Here is the code:
Michael Humphreys wrote:I don't understand why my System.out.println call won't work.
Glad you were able to get your code to work.
Another tip for posts around here....generally, saying "X doesn't work" doesn't help anyone understand your problem. It could mean anything from 'javac is not a recognized program or executable" to classpath issues to syntax errors to logic errors to any of about a billion other things.
Your job, when posting here, is to make it as easy as possible for folks to help you. If you get a syntax error when compiling, post the exact and complete text of that error. If the results are different than what you expect when you run it, tell us what you got AND what you expected.
people here LOVE to help others. But, if it comes to a choice between helping someone who has made it easy to help them and someone who made it hard...well...you can guess which most folks would choose.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Thank you for all of your responses. I have assimilated your suggestions and will take action to implement same in a rapid fashion. As for Campbell Ritchie and Kevin Workman I am sorry that I stepped on your toes so to speak. I was not aware of the requirement and will surely not crosspost in the future, but do you not think it just a bit harsh that after one infraction and the poster is told he will receive no more help? Thank you all for your help
author and iconoclast
There's no official policy about not helping crossposters; it's just that Kevin feels his effort helping you on another site was wasted, and won't personally want to help you again. A lot of people will feel that way.