1,963 Posted Topics
Re: You are absolutely right there. I had a course in my university about Operating Systems, which I passed with 8, (10 is the max) and all my code was cheated. I took it from an older student who had the same course. But, to my defense I will have to … | |
| |
Does anyone know where can I find how to calculate how many days February has for a given year? | |
Re: I think that the [CODE] private JPanel imagePanel, numberPad; private JTextField text; [/CODE] have not been instatiated Try: [CODE] private JPanel imagePanel = new JPanel(); private JPanel numberPad = new JPanel(); private JTextField text; = new JTextField(); [/CODE] If this does not fix your problem try to debug and see … | |
Re: I think is something like: [CODE] roachPopulation.doublePopulation(); lable.setText( roachPopulation.getPopulation() ); [/CODE] | |
Re: By the way the formula for the cylinder is wrong. The one you wrote calculates the volume The right is : (πr^2) * 2 + h*2πr | |
Re: I am sorry for not speaking Martian. That's why I don't understand what you are saying. Try to post again your question. With more details and better explanation | |
Re: First of all you don't instantiate the Triangle inside the main The getArea() is totally wrong. The formula you are using is only for triangles with 90 degrees. The Double.parseDouble throws a NumberFormatException. Use try-catch And you don't declare type inside getType() | |
Re: I usually use SimpleDateFormat and Date objects since I am not familiar with the Calendar. Why don't you check them at the sun's API: [URL="http://java.sun.com/j2se/1.5.0/docs/api/overview-summary.html"]http://java.sun.com/j2se/1.5.0/docs/api/overview-summary.html[/URL] | |
Hello everybody. I am javaAddict. I have been a java addict since 2004. I came across this site when I was looking for some java project ideas to implement just for fun in order to kill time (yes that's what I do for fun when I am bored: I write … | |
Re: Do you know what we should do when someone just asks for others just to do their homework? We should do it, tell them that we did it and it's perfect and NOT give it to them as punishment for their being lazy. | |
Re: All the subclasses can use the super's class methods. If you write: [CODE] Employee e = new Nurse(); [/CODE] The e will be able to use all the Employee's methods and the Nurse's methods but not the Janitors. Try to put those isSomething() methods in the superclass or have one … |
The End.