Search Results

Showing results 1 to 15 of 15
Search took 0.01 seconds.
Search: Posts Made By: nschessnerd ; Forum: Java and child forums
Forum: Java Dec 11th, 2007
Replies: 13
Views: 1,588
Posted By nschessnerd
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
Posted By nschessnerd
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
Posted By nschessnerd
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
Posted By nschessnerd
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
Posted By nschessnerd
in your child classes did you extend object?
Forum: Java Oct 23rd, 2007
Replies: 7
Solved: Help with GUI
Views: 911
Posted By nschessnerd
You can do Double.parseDouble instead of Integer.parseInt
Forum: Java Oct 23rd, 2007
Replies: 7
Solved: Help with GUI
Views: 911
Posted By nschessnerd
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
Solved: Help with GUI
Views: 911
Posted By nschessnerd
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
Posted By nschessnerd
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
Posted By nschessnerd
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
Posted By nschessnerd
can you make those photos larger?
Forum: Java Oct 6th, 2007
Replies: 11
Solved: Assignment help
Views: 1,997
Posted By nschessnerd
// 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
Solved: Assignment help
Views: 1,997
Posted By nschessnerd
also isnt the main methos suppose to be
main(String[] args)
Forum: Java Oct 3rd, 2007
Replies: 11
Solved: Assignment help
Views: 1,997
Posted By nschessnerd
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
Solved: Assignment help
Views: 1,997
Posted By nschessnerd
if( devices < 30 )
cost = "46.00";
else if( devices >= 30 && devices< 70 )
cost = "43.00";
else if(...
Showing results 1 to 15 of 15

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC