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())
在这里插入图片描述

posted @   xuchaoxin1375  阅读(8)  评论(0编辑  收藏  举报  
相关博文:
阅读排行:
· 分享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语言对齐打印(指定下限宽度)
点击右上角即可分享
微信分享提示