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...
Type: Posts; User: hello_world
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...
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...
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:...
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.
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...
Yes sir, LocalCall extends the abstract class PhoneCall, but I have a toString() method in both of them.
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...
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...
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...
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...
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...
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 {...
Yes sir, thank you
No, I wanted to get access to them. I used super (variable1, variable2) and it compiled.
Heres the code from my abstract class.
public abstract class PhoneCall {
//Instance Variables of type CheckedTime
protected CheckedTime startTime;
protected CheckedTime endTime;
/*...
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...
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()...
Problem solved. I had an extra brace in there.
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...
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...
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...
System.out.println(s);
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...
Yeah, I just figured out what Junky was saying. So simple I missed it.
Duh..I now know what you mean by delete...I have a lot of expletives to call myself right now.