dogs = dogs.replace('o','u');
This take a specified character and replaces it.
Type: Posts; User: johnvasgird
dogs = dogs.replace('o','u');
This take a specified character and replaces it.
Alright I see your problem. Your problem is this.
all your final int (weekday) = number.
when you put a weekday into a system.out its always going to give a number... because you set it as a...
Wow okay, I figured out I was doing everything right. I used a conditional statement to compare the classes, and if the classes were the same, it would print something out. I used print() instead of...
I'm sorry if I didn't make sense. What I meant is I am use to doing stuff like
MyClass newClass = new MyClass();
not doing a new inside a parenthesis like this
newClass.getSomething(new...
Alright thanks for the reply. I tried the scenario out that I suggested to no success. It said that object layout could not be found because the class did not exist. The only thing I could think of...
Hey Norm, thanks for the response. Im still a little confused then. According to the code, setLayout is a method right? How does a method take a class an know what to do with it? I mean would the...
I know how to use layouts and everything, but my questions is, why do I have to do a new on the FlowLayout?
myPane.setLayout(new FlowLayout());
I really just need an explanation on why it...