Search:

Type: Posts; User: hello_world

Page 1 of 2 1 2

Search: Search took 0.20 seconds.

  1. Replies
    2
    Views
    288

    Re: Method access problem

    Enter file name to read: testdata.txt
    Calltype: L
    StartTime: 07:30:00
    EndTime: 07:30:00
    Made it into the "L" else-loop, creating CheckedTime object
    CheckedTime objects created
    Created new...
  2. Replies
    2
    Views
    288

    Method access problem

    I'm trying to get access to a method that is outside of three classes that extend each other. Basically the three classes below are linked together by the extends.

    class CheckedTime extends class...
  3. Replies
    17
    Views
    850

    Re: Problem extracting data from file

    I've added print statements throughout and can see what's causing the problem, but can't determine why. The problem is that I get the NullPointerException on line 40 of this code. Here is line 40:...
  4. Replies
    17
    Views
    850

    Re: Problem extracting data from file

    Will try that tomorrow. I have my final to sleep for my final, then will be back to finalize my project for Saturday. I appreciate the help.
  5. Replies
    4
    Views
    669

    Recursion Trace

    I have this recursion that I created the main for but cant figure out the trace as to why it provides the output it does. Can someone provide me a trace?

    import java.util.*;

    public class...
  6. Replies
    17
    Views
    850

    Re: Problem extracting data from file

    Yes sir, LocalCall extends the abstract class PhoneCall, but I have a toString() method in both of them.
  7. Replies
    17
    Views
    850

    Re: Problem extracting data from file

    I'm still getting nullpointer exceptions in my LocalCall class and don't know why. Does it have something to do with my abstract class or from the objects created by my MonthlyPhoneBill class. I'm...
  8. Replies
    17
    Views
    850

    Re: Problem extracting data from file

    I see that Junky, but that's the issue that I can't figure out. I have toString() in my abstract class and my LocalCall class and another similar class LongDistanceCall. I'm having trouble tracking...
  9. Replies
    17
    Views
    850

    Re: Problem extracting data from file

    not sure why I had my List<Object> that way. I do have "new" before my ArrayList<OBject>. As for the file name, that's above the code I originally listed in this thread. Here's the code that is...
  10. Replies
    17
    Views
    850

    Re: Problem extracting data from file

    The startTime and endTime are objects created by another class CheckedTime which extends one class, which itself extends to a third class. The third class would be considered the first class...
  11. Replies
    17
    Views
    850

    Re: Problem extracting data from file

    okay, I fixed that to look like this "if (callType.equals("D") || callType.equals("L")) {"
    , but now it's creating a new error below and I am still am having the issue with extracting the strings in...
  12. Replies
    17
    Views
    850

    Problem extracting data from file

    List<Object> variable = ArrayList<Object>();
    Scanner fileScan;
    File inputFile = null;

    I checked my inputFile to see if it was in the directory. If yes then the code continues below.

    try {...
  13. Replies
    9
    Views
    451

    [SOLVED] Re: Error in constructor

    Yes sir, thank you
  14. Replies
    9
    Views
    451

    [SOLVED] Re: Error in constructor

    No, I wanted to get access to them. I used super (variable1, variable2) and it compiled.
  15. Replies
    9
    Views
    451

    [SOLVED] Re: Error in constructor

    Heres the code from my abstract class.

    public abstract class PhoneCall {

    //Instance Variables of type CheckedTime
    protected CheckedTime startTime;
    protected CheckedTime endTime;

    /*...
  16. Replies
    9
    Views
    451

    [SOLVED] Re: Error in constructor

    Abstract1 is the default constructor in AbstractClass1.
    Abstract1 looks exactly like the constuctor above in MyTimes
    The error comes when I compile the MyTimes class, so to me the issue is with how...
  17. Replies
    9
    Views
    451

    [SOLVED] Error in constructor

    I have a constructor that is in a class that extends and abstract class and am getting this error message when I compile Class 4

    cannot find symbol
    symbol : constructor AbstractClass1()...
  18. Replies
    2
    Views
    331

    [SOLVED] Re: Method issues

    Problem solved. I had an extra brace in there.
  19. Replies
    2
    Views
    331

    [SOLVED] Method issues

    I have this method inside a class that extends an abstract class. This is a two part problem.

    PART 1: my toString method is loaded with errors below. I have imported java.util.* already. I've...
  20. Replies
    5
    Views
    486

    Re: Exception Handling

    I'm trying to traverse a String value HH:MM:SS to determine if the colons are missing, if there are any non-numeric values, or if the values are out of range. Later in the method I also created a...
  21. Replies
    5
    Views
    486

    Exception Handling

    I'm trying to traverse a String value HH:MM:SS to determine if the colons are missing, if there are any non-numeric values, or if the values are out of range. Later in the method I also created a...
  22. Replies
    4
    Views
    651

    Re: User-Defined Methods

    System.out.println(s);
  23. Replies
    10
    Views
    744

    Re: ActionListener help

    I'm close now, but having troubles with another part of my program. I need to output all this information and format it properly. I have this block of code, but due to the location of variables...
  24. Replies
    10
    Views
    744

    Re: ActionListener help

    Yeah, I just figured out what Junky was saying. So simple I missed it.
  25. Replies
    10
    Views
    744

    Re: ActionListener help

    Duh..I now know what you mean by delete...I have a lot of expletives to call myself right now.
Results 1 to 25 of 32
Page 1 of 2 1 2