Back
I need help with this java please. I created an ArrayList of bulbs, and I'm trying to replace a bulb at specific index with another bulb. So with the following heading, how do I proceed?
public void replaceBulb(int index, Bulbs theBulb) {}
public void replaceBulb(int index, Bulbs theBulb) {
}
Check out the set(int index, E element) method in the List interface
31k questions
32.8k answers
501 comments
693 users