How to convert Long object to String in Java

1 Answer

0 votes
package javaapplication1;

public class JavaApplication1 {
 
    public static void main(String[] args) {
  
        Long l = new Long(3000000);

        String s = l.toString();
        System.out.println(s);
    }
}
 
/*
    
run:
    
3000000

*/

 



answered Nov 3, 2016 by avibootz

Related questions

1 answer 162 views
1 answer 149 views
4 answers 333 views
333 views asked Nov 8, 2016 by avibootz
2 answers 155 views
155 views asked Jun 17, 2021 by avibootz
2 answers 170 views
170 views asked Jun 17, 2021 by avibootz
...