Skip to content

Instantly share code, notes, and snippets.

@tkmtmkt
Last active December 21, 2015 05:29
Show Gist options
  • Save tkmtmkt/6257657 to your computer and use it in GitHub Desktop.
Save tkmtmkt/6257657 to your computer and use it in GitHub Desktop.
Display java system properties on scala console
// raw
System.getProperties.list(System.out)
// sorted
import scala.collection.JavaConverters._
System.getProperties.asScala.toSeq.sortBy(_._1).foreach{x => println(x._1 + " = " + x._2)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment