add constructor in java intellij code example Example: calling constructor in intellij idea to call directly construcor or press ⌘N or Alt+Insert