当前位置:网站首页>idea中怎样编写Scala代码
idea中怎样编写Scala代码
2022-06-10 04:03:00 【百思不得小赵】
配置步骤
首先打开idea,点击右上角的File,选择settings

然后选择plugs,输入Scala,提示出Scala插件,点击install,安装完成后重启idea,插件安装成功。

右击项目名称,点击Add Framework support,勾选Scala,选择对应的配置

创建一个maven工程,在main目录下创建新的文件夹,命名为scala

右键文件夹,选择make directory as --> soures root

创建scala 对象


至此,在idea中编写scala代码完整的步骤就结束了,接下来写一个测试代码验证一下!

测试代码
编写scala代码:
object Test {
def main(args: Array[String]): Unit = {
println("Hello Scala")
}
}
测试成功:

边栏推荐
- “阿里/字节“大厂自动化测试面试题一般会问什么?以及技巧和答案
- 使用luks2对ceph rbd进行加密
- Rest-Assure框架最全使用教程
- [深入研究4G/5G/6G专题-24]: 5G NR开机流程4.2 - 随机接入应答消息MSG2的调度过程与上行同步、时间提前量TA通过PDSCH信道下发
- 作为软件测试工程师,给年轻时的自己的建议(上)
- 工作8年月薪8000四年未涨,跳槽拿15000,原老板招不到人苦求回去
- 阿里云首次年度盈利,国内云厂商何时迎来集体回报期?
- Key points of engineering ethics examination for Postgraduates
- [image detection - edge detection] image edge extraction based on PCNN with matlab code
- [深入研究4G/5G/6G专题-29]: 5G NR开机流程5.1 - NR网络架构、基站的核心网相关配置
猜你喜欢

Google Earth Engine(GEE)——GPWv411:平均行政单位面积数据集

I wrote getter and setter methods every day. I was impatient, so I used the artifact mapperstruct, and the crud efficiency was suddenly improved! (hard coding is preferred)

Open vs code from current folder

在线JSON转CSV工具
![[MySQL] several methods of multi table Association and foreign key problems, multi table query and sub query](/img/02/2346df3c1ba983db7aa15c43eec3f4.png)
[MySQL] several methods of multi table Association and foreign key problems, multi table query and sub query

What do you usually ask about "ALI / byte" automation test interview questions in large factories, as well as the skills and answers
![[calculation method]](/img/59/7488d25f72ffa642de76d9cf743196.png)
[calculation method]

Distributed current limiting: current limiting based on sentinel implementation (I) - Overview

“阿里/字节“大厂自动化测试面试题一般会问什么?以及技巧和答案

3-编程语言--golang网址学习
随机推荐
Tailwind causes the button icon of antd not to be centered
[从零开始学习FPGA编程-14]:快速入门篇 - 操作步骤3(功能仿真)-3-modelsim快速使用入门(8bits循环计数器)
QT中的QProgressBar+QPushButton+QMainwindow+QTmer+布局管理器+QTextCodec+QTextToSpeech
Preorder traversal binary tree
[build a neural network from scratch and improve the accuracy to 85%]
Is the online account opening channel reliable? Is it safe?
Online text string batch replacement tool
Business card wechat applet error version 2
在线文本字符串批量替换工具
在MATLAB中使用tensorflow
【毕业设计2】基于STM32的智能抽油烟机系统
[adaptive motion compensation] FPGA based adaptive motion compensation video image enhancement system
MySQL learning
[MySQL] 数据库-视图
使用luks2对ceph rbd进行加密
Openai new blog: techniques for training large models
Rest assure framework tutorial
Vulnhub's harripot: Fawkes
Code writing method of wechat applet search box
【OV7670】基于FPGA的OV7670摄像头介绍和使用