package com.codemonkey
import javax.swing.JOptionPane
object Main {
@JvmStatic
fun main(args:Array<String>){
val fecha = java.util.Date()
JOptionPane.showMessageDialog(null,"Hoy es $fecha")
val nombre:String = JOptionPane.showInputDialog("Escribe tu nombre:")
JOptionPane.showMessageDialog(null,"Hola $nombre")
}
}
Uso de javax.swing en Kotlin
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.