What is the preferred way to convert an Integer into a String in Xtend? Is there a better way than this?

var int port = 12345
var String portStr = "" + port
有帮助吗?

解决方案

var portString = port.toString
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top