qin weiping

Greenhorn
+ Follow
since Jan 02, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by qin weiping

hello my friends i make a node pad then you can give me some suggestions i can improve my programming ability thank you

12 years ago
first you should install the JDK JDK include the jre and then you should configuration file but i am a chinese people i use the windows XP chinese edition
so serveral traslate not exactly right so first you shold right click the "my computer " select the "genitive " select the "advance" ( in the top of the window)

and then enter the" environment variables " look for the path and you must find the file path of JDK and then click clik click until
you find the bin just like :C:\Program Files\Java\jdk1.6.0_21\bin; i want to remind you that you not forget the ":" and then copy paste to
the path in the front of the system path frame enter make sure then you can test the JDK whether or not install your system
please find "running " input the "cmd" enter the dos then input "java -version" then if you install success you can see some version infomation
12 years ago

Randall Twede wrote:i have never heard that a sub-class cannot throw a new exception. of course i dont know everything. and YES you can have as many public classes as you want(not in the same file though i dont think, but the code doesnt explicitly say they are the same file), but one of them must include a main() method(he might have a third class with main() in it that he didnt post). and you dont NEED package statements, although they have a use.



i know what you said haha but i think in a file you‘d better build a package the auth probably have several java file i know
12 years ago

Paul Clapham wrote:

Anissa Pary wrote:It throws me null pointer exception however when I commenting out my super(name) it works Is problem in Exception that I throw in subclass but do not throw in superclass???



If you get an exception thrown at run-time, the best strategy is to look at the exception and see what it says. Picking a random feature of your code and trying to blame that feature is not likely to be a good strategy at all.

So. What does the exception say? Post the whole stack trace.



yeah,post the whole stack trace
12 years ago
hello my friend , in your programming ,you have not a main method, 1 the main method is the

entrance of the running program 2 in a java file you can't have the two public class in

this programming i can see two public class you should delete the class which in front of

the Alcohol 3 you better have build a package not default package in order to avoid the of

a file has the same class you can write a test class to test the result try
12 years ago
in think the problem is that in the class of the testIceCream you should throws the exception
12 years ago