Forum: C++ May 13th, 2009 |
| Replies: 5 Views: 352 where do you call simplify? |
Forum: Java Dec 11th, 2007 |
| Replies: 13 Views: 1,588 Also do all of the sub classes have the same methods? because if you define it as a doctor and dont have something like isJanitor() then it will give you an error. |
Forum: Java Dec 10th, 2007 |
| Replies: 13 Views: 1,588 Try testing it without using the employee class. does it still give you that error? |
Forum: Java Dec 10th, 2007 |
| Replies: 13 Views: 1,588 Your child class should extend object... unless employee does? try doing that... the odd thing is that technically everything is an object right? |
Forum: Java Dec 10th, 2007 |
| Replies: 13 Views: 1,588 hmm..
can you show me part of your code? say one of the classes and how your initializing the object. |
Forum: Java Dec 10th, 2007 |
| Replies: 13 Views: 1,588 in your child classes did you extend object? |
Forum: Java Oct 23rd, 2007 |
| Replies: 7 Views: 911 You can do Double.parseDouble instead of Integer.parseInt |
Forum: Java Oct 23rd, 2007 |
| Replies: 7 Views: 911 hmm,
There is no clean way i can think of, but you can do
try{
int num=Integer.parseInt(firstDenominator.getText());
//if it gets to here its valid
}catch(NumberFormatException e){
//invalid... |
Forum: Java Oct 23rd, 2007 |
| Replies: 7 Views: 911 basically you need to check if they have a value. if the enter nothing then the string will be null or "". If you try to set a integer equal to null, you will get an exception, so you need to check... |
Forum: Java Oct 18th, 2007 |
| Replies: 4 Views: 4,134 import javax.swing.JOptionPane;
public class GPA {
private double gpa = 0.0;
public GPA() {
}
public String UserInput(){ |
Forum: Java Oct 13th, 2007 |
| Replies: 4 Views: 4,506 please use code tags :-)
public class MyNew extends JFrame implements ActionListener
{
public static void main(String[] args)
{
publicMyNew start= newMyNew();
... |
Forum: Java Oct 12th, 2007 |
| Replies: 31 Views: 3,472 can you make those photos larger? |
Forum: JSP Oct 9th, 2007 |
| Replies: 4 Views: 2,538 it depends on what you are putting on the jsp page. Essentially it boils down to good web developement. |
Forum: Java Oct 6th, 2007 |
| Replies: 11 Views: 1,997 // Displaying multiple strings
import javax.swing.*; // to use JOptionPane.show InputDialog box
public class a3
{
public static void main( String[] args )//args is an array. to... |
Forum: Java Oct 6th, 2007 |
| Replies: 11 Views: 1,997 also isnt the main methos suppose to be
main(String[] args) |
Forum: Java Oct 3rd, 2007 |
| Replies: 11 Views: 1,997 double
totalPrice = 0, // the sum of calculated devices
devices = 0, // the number of devices wanted
salesTax = 0, // the calculated sales tax... |
Forum: Java Oct 3rd, 2007 |
| Replies: 11 Views: 1,997 if( devices < 30 )
cost = "46.00";
else if( devices >= 30 && devices< 70 )
cost = "43.00";
else if(... |