Kotlin_main()方法和第一行:Hello World
code
package com.zjgsu.cxxu.memowithmindmap.util object Test { /*use the @JvmStatic annotation*/ @JvmStatic fun main(args: Array<String>) { println("Hello kotlin") } } /** * //in java: * public class TestJavaMain { * //the main method: public static void main(String[] args) { System.out.println("hello java"); } }*/
with shortcut:quick write
psvmo:
(just like the psvm in java)
sout :this also works:(println())
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
2023-04-25 vscode配置自定义代码片段:让vscode具有和IDEA一样的代码段生成快捷键(sout或psvm)的配置方法为例说明/自定义html代码片段
2023-04-25 python@面向对象OOP@类的构造
2023-04-25 python@可变对象和不可变对象@按值传递和引用传递@python运行可视化工具
2023-04-25 c/python_用函数Prime(int n, int m, int *num)实现获得n到m之间所有的素数/filter函数筛选质数
2022-04-25 C_编写一个从输入流读入整数的函数,当这个整数是流末尾结束位置,返回EOF(对应的值)/灵活的调试宏的定义和使用/C语言对齐打印(指定下限宽度)