Step1: File->New Project->Create project from scratch:
Step2: Input project name, and select project type: Java Module
Step 3: Create source directory: use default settings and next;
Step 4: Select Scala as tech used by project, and set scala SDK directory:
Step 5: Create a new Scala Class, which type is Object:
Step 6: Complete the demo code:
Step 7: Run this main method:
And get the result: