package com.example.java;
import java.text.NumberFormat;
public class Main {
public static void main(String[] args) {
int R = 42;
String fromR = Integer.toString(R);
System.out.println(R);
boolean Rb = true;
Boolean.toString(Rb);
System.out.println(Rb);
long Rl = 100_000;
//Long.toString(Rl);
NumberFormat formatt = NumberFormat.getNumberInstance();
String formatted = formatt.format(Rl);
//with commas instead of underscore
System.out.println(formatted);
}
}
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.