fork download
  1.  
  2.  
  3. /* package whatever; // don't place package name! */
  4.  
  5. import java.text.DecimalFormat;
  6. import java.text.NumberFormat;
  7. import java.util.Locale;
  8. import com.google.common.primitives.Longs;
  9.  
  10. /* Name of the class has to be "Main" only if the class is public. */
  11. class Ideone
  12. {
  13. public static void main (String[] args) throws java.lang.Exception
  14. {
  15. System.out.println(Longs.toByteArray(75086340334L));
  16. System.out.println(Longs.toByteArray(75086340342L));
  17. System.out.println(Longs.toByteArray(75086340534L));
  18. System.out.println(Longs.toByteArray(75086340350L));
  19. }
  20. }
Success #stdin #stdout 0.08s 52824KB
stdin
Standard input is empty
stdout
[B@63961c42
[B@65b54208
[B@1be6f5c3
[B@6b884d57