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 159 views
1 answer 147 views
4 answers 330 views
330 views asked Nov 8, 2016 by avibootz
2 answers 148 views
148 views asked Jun 17, 2021 by avibootz
2 answers 166 views
166 views asked Jun 17, 2021 by avibootz
...