// Forcodes80toFF.java (c) 2004 Kari Laitinen import java.io.* ; class Forcodes80toFF { public static void main( String[] command_line_arguments ) { int number_of_codes_on_this_line = 0 ; System.out.print("\n The codes of visible characters from 0x80 to" + "\n 0xFF (hexadecimal) are the following:\n\n " ) ; for ( int numerical_code = 0x80 ; numerical_code < 0x100 ; numerical_code ++ ) { char ascii_character = (char) numerical_code ; String numerical_code_as_hexadecimal_string = Integer.toHexString( numerical_code ) ; System.out.print( ascii_character + " " + numerical_code_as_hexadecimal_string + " ") ; number_of_codes_on_this_line ++ ; if ( number_of_codes_on_this_line == 8 ) { System.out.print( "\n " ) ; number_of_codes_on_this_line = 0 ; } } } }