Scala show dates
import java.util.Date
import java.util.DateFormat
object PrintDate {
def main(args: Array[String]) {
val now = new Date
println(now)
}
}
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
import java.util.Date
import java.util.DateFormat
object PrintDate {
def main(args: Array[String]) {
val now = new Date
println(now)
}
}