How do I change the keyboard shortcut for "Generate" in IntelliJ IDEA?

When I right-click, I see 'Generate', with (Alt + Ins) next to it. However, 'Generate' doesn't open when I press Alt + Ins. Instead, I have to open it every time I click, which is annoying. Where can I change the settings in IntelliJ IDEA so that the 'Generate' window opens with a custom keyboard…

Iterate through enums in Java using for-each?

public enum Wochentage { MONTAG(100), DIENSTAG(200), MITTWOCH(300); private final int value; Wochentage(int i) { this.value = i; } public int getValue() { return value; } } I now want to output the values ​​of the enum in the main using for-each: for (Wochentage w = Wochentage.values()) { System.out.print(w + " "); } I'm getting an…

Java programming interfaces?

public interface Alkohol { double alkohogehalt(); boolean alkoholfrei(); int alkoholgehaltInML(); } public class BierImpl extends AbstractAlkoholisch implements Bier{ public BierImpl(String herkunft, String sorte, int ml, int pfand, double alkoholgehalt) { super(herkunft, sorte, ml, pfand, alkoholgehalt); } } public abstract class AbstractAlkoholisch extends AbstractGetraenk implements Getraenk, Alkohol{ double alkoholgehalt; public AbstractAlkoholisch(String herkunft, String sorte, int ml,…