Hello,
I would like to know is how to have a method public Component getComponent(Class type);
and for it to return a Component from a list: List comp
EpicGamer007can you clarify a bit more? What is your goal? Are you trying to make an ArrayList which ONLY accepts subclasses of Component? If that is your goal, it is pretty simple. Make the List be List components = new ArrayList(); or you could make a method like
public void addComponent(List list) {
}
If you want to make a method which accepts any animal or animal subclass, you can also do this
public void addComponent(List l) {
}
I do not remember a lot about Java generics so if I misinterpreted y2 years ago
Hello, I just started using kaboom to make a game, key press won't work. I can do something like add physics to an object but I can't log that I click
kaboom
ANGELAJUMPERI am having the same issue onKeyPress doesn't work not even with the example. I reported the bug and they replied in email to ask here that is not a bug. I know how to program and it is definitely not working.2 years ago
SixBeepsConsole logs appear to not work with Kaboom at the moment. If you open the game in a new tab and look at the JS console, you'll see the console logs there.3 years ago
When I create a new java/java swing repl, I don't have Intellisence. My Intellisence is enabled.
Coder100Some languages don't have a language server yet, so they don't have intellisense. Java should have one, but obviously something broke there. Make sure it is not your computer/firewall.
Report to bugs: https://repl.it/bugs3 years ago