سؤال

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