Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to write Scala code in IDEA

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article introduces the knowledge of "how to write Scala code in IDEA". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Restart IDEA at this point:

Restart IDEA at this point:

After reboot, enter the following interface:

Write Scala code in IDEA:

First, select "Create New Project" in the entry screen of our previous step:

Select the "Scala" option in the list on the left:

To facilitate future development work, we select the "SBT" option on the right:

Click "Next" to proceed to the next step, setting the name and directory of the Scala project:

Click "Finish" to complete the project creation:

Since we chose the "SBT" choice earlier, IDEA intelligently helps us build the SBT tool at this time:

We click on the project name "HelloScala":

It will take some time for IDEA to automatically complete the installation of SBT tools. It takes about 5 minutes for Jialin here. After SBT is finished, SBT will automatically set up some directories for us:

Right-click scala under main under src and select "Scala Class" under "New".

Enter a file name:

Select Kinde as "Object":

Click "OK" to finish:

This is the end of "how to write Scala code in IDEA". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report