After reading your last post I did do some reviewing and realized what I did to cause those errors. thanks for the help! turns out there were more that arose but I got all the bugs out finally. :)
Type: Posts; User: SeanEE89
After reading your last post I did do some reviewing and realized what I did to cause those errors. thanks for the help! turns out there were more that arose but I got all the bugs out finally. :)
So the Truck method I created is not serving as a Truck constructor in that class then?
Uhhh do you think you could give a better hint then that? haha
I apologize this has been driving me nuts and I am resorting to the forum because I'm hopelessly lost now.
Oh sorry here is the entire thing. If you are wondering about the IT206.labbassignments.lab2assignment. that's the package that I have the two files in.
I did not realize that. I checked the lines, but still can not figure out what the problem is. I have initialized the variables.
The first is on line 29 in the TruckWithStereo class
The...
I am getting a null pointer exception and can not figure out what I'm missing here. Does anyone have any idea what I'm missing? :(
I haven't had an opportunity to get to a computer to try anything out. I was just wondering if you'd be a able to provide an example.
Wouldn't I be able to use a count to count how many letters...
an example?
I am trying to figure out how to concat two strings if certain conditions are met or not met. Say I were to enter a string, and the string did not contain any letters. I would then prompt the...
String input = "little";
for(int i = 0; i < input.length(); i++){
else if(input.charAt(i) == 'l'){
output = input.replace('l', 'L');
}//end l to L...
How could i use the toUpperCase method to accomplish this?
As for using subStrings would I have to use two incase I were to enter a word where the 'L' might be inside of the given word like if I...
What methods would I have to use in order to accomplish this?
If this is not possible why is there a replace method for characters? Just wondering, because the examples I've seen of it lead me to...
You're close, but I am aware of the toUpperCase method. I'm trying to convert a specific character though; not an entire string of characters. If I were to enter the word "laugh" I would want it to...
I will give it a look when I get to a computer thanks!! if anyone else has any feedback or the answer to my question I would appreciate it if they'd chime in. Other resources like the API would be...
I am trying to figure out how to alter specific characters in a string. Say I were to enter a string in that contains a lowercase "i".
How could I command java to convert the lowercase "i" to an...