You are viewing a single comment's thread. Return to all comments →
Works like if statement
String s = (-100 <= n && n <= 100) ? Integer.toString(n) : null;
Seems like cookies are disabled on this browser, please enable them to open this website
Java Int to String
You are viewing a single comment's thread. Return to all comments →
Works like if statement
String s = (-100 <= n && n <= 100) ? Integer.toString(n) : null;