util
Class Test.Casts
java.lang.Object
util.Test.Casts
- Enclosing class:
- Test
public static class Test.Casts
- extends Object
Test what happens if we are casting a double to a short and byte.
|
Method Summary |
static void |
main(String[] arg)
Reads the command line argument as a double and cast it to
primitive short and byte and print the result. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Test.Casts
public Test.Casts()
main
public static void main(String[] arg)
- Reads the command line argument as a double and cast it to
primitive short and byte and print the result.