util
Class Test.Casts

java.lang.Object
  extended by 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.


Constructor Summary
Test.Casts()
           
 
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
 

Constructor Detail

Test.Casts

public Test.Casts()
Method Detail

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.