SORU
7 EKİM 2011, Cuma


Nasıl Java uzun Dize dönüştürmek için?

Java'da basit bir sorum var: Nasıl long Long.toString() tarafından elde edilmiştir String dönüştürebilir miyim?

CEVAP
7 EKİM 2011, Cuma


 Long.parseLong("0", 10)        // returns 0L
 Long.parseLong("473", 10)      // returns 473L
 Long.parseLong("-0", 10)       // returns 0L
 Long.parseLong("-FF", 16)      // returns -255L
 Long.parseLong("1100110", 2)   // returns 102L
 Long.parseLong("99", 8)        // throws a NumberFormatException
 Long.parseLong("Hazelnut", 10) // throws a NumberFormatException
 Long.parseLong("Hazelnut", 36) // returns 1356099454469L

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Elliot Davin

    Elliot Davin

    28 Kasım 2008
  • Sergio Fernandez

    Sergio Ferna

    1 EKİM 2009
  • Showtime

    Showtime

    21 HAZİRAN 2006