#need help in java program

15 messages · Page 1 of 1 (latest)

frozen geyser
#

i am new to java ..and i cant find my mistakes in this program so can someone help me out?

potent karmaBOT
#

This post has been reserved for your question.

Hey @frozen geyser! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

frozen geyser
#

this is the code

jaunty crescent
#

"mistakes"? Is there something you don't like with your results?

quiet cedar
#

your should not print diff with "quotes" of you wamt to print the variable

glacial nest
#

Yes, the quotes mean a String object, which is a string of characters (e.g. 'b-i-k-e').
When you write something in quotes, it is treated the same as a new String, and not anything else.

glossy hemlock
#

Main is better than main for the name of your class.

jaunty crescent
#

(Because type names should follow the convention of starting with a capital letter, and because that way method main() won't have a name that looks like a constructor of the class, getting rid of one of the warnings)

white mesa
pulsar yoke
#

I check the properties path inside web.xml and make sure the properties file key general.default is there

#

I also went back into the class folder and make sure the name of my properties is the same as in the web.xml

jaunty crescent