dokaspar
dokaspar

Reputation: 8634

Xtend: How to convert Integer to String?

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

Upvotes: 0

Views: 1095

Answers (1)

Jon
Jon

Reputation: 398

var portString = port.toString

Upvotes: 1

Related Questions