Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4031762

Inconsistent Primitive Wrapper Classes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.4.0
    • 1.1, 1.2.2
    • core-libs
    • None
    • merlin
    • generic, x86
    • generic, windows_nt



      Name: mc57594 Date: 02/11/97


      for consistency's sake, can we get static methods in Each
      of the primative wrapper classes that turn the primative type
      into a string? For example,

      I can turn a integer into a string:
      String s = Integer.toString(10);

      But I cannot turn a character into a string like this:
      String s = Character.toString('c');

      Nor can I with booleans:
      String s = Boolean.toString(true);

      If we had all of these methods, it would be wonderfully consistent.

      -Robert Temple
      company - Starwave Corporation , email - ###@###.###
      ======================================================================

            mmcclosksunw Michael Mccloskey (Inactive)
            mchamnessunw Mark Chamness (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: