File: p57.java

package info (click to toggle)
bock 0.20.2.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,228 kB
  • ctags: 1,370
  • sloc: ansic: 7,367; java: 5,553; yacc: 963; lex: 392; makefile: 243; sh: 90; perl: 42
file content (16 lines) | stat: -rw-r--r-- 762 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class Test {
        public static void main(String[] args) {
                float fmin = Float.NEGATIVE_INFINITY;
                float fmax = Float.POSITIVE_INFINITY;
                System.out.println("long: " + (long)fmin +
                                   ".." + (long)fmax);
                System.out.println("int: " + (int)fmin +
                                   ".." + (int)fmax);
                System.out.println("short: " + (short)fmin +
                                   ".." + (short)fmax);
                System.out.println("char: " + (int)(char)fmin +
                                   ".." + (int)(char)fmax);
                System.out.println("byte: " + (byte)fmin +
                                   ".." + (byte)fmax);
        }
}