Search:

Type: Posts; User: Melawe

Search: Search took 0.08 seconds.

  1. [SOLVED] Re: Converting primitive data types causing NumberFormatException

    Yes, here is the finial code:

    /*Author: Melawe(Alem)
    * Date of completion: 09/Dec/2011
    * Code made for: JClass's first assignment, a Java Programming group.
    *...
  2. [SOLVED] Re: Converting primitive data types causing NumberFormatException

    Sorry I thought you meant user input. I am supposed to convert a String to primitive data types and print the value of the data type plus the name of the class using the getClass().getName() method....
  3. [SOLVED] Re: Converting primitive data types causing NumberFormatException

    There will be no input, output should be something like: 77 is a java.lang.Byte. It isn't something to be used in other project, it is just an assignment to see what the members of a programming...
  4. [SOLVED] Re: Converting primitive data types causing NumberFormatException

    Ah, thanks, I thought it also applied to Strings.
  5. [SOLVED] Re: Converting primitive data types causing NumberFormatException

    Would you mind looking at the assignment? It is here:Jclass.freeforums.org • View topic - Java Primitives Assignment.
  6. [SOLVED] Converting primitive data types causing NumberFormatException

    Hello all,

    Hmm, for some reason I cant convert the value of a string to byte or any other type of primitive data type. I tried to use valueOf(), decode(), and parseByte(), but none would work.
    ...
Results 1 to 6 of 6