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.
*...
Type: Posts; User: Melawe
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.
*...
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....
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...
Ah, thanks, I thought it also applied to Strings.
Would you mind looking at the assignment? It is here:Jclass.freeforums.org • View topic - Java Primitives Assignment.
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.
...