BUT2/DEV/DEV2.1/TP10_exceptions.java/Q3_Incomplet/Incomplet.java~

12 lines
231 B
Java
Raw Permalink Normal View History

2023-10-23 13:23:36 +02:00
public class Incomplet {
public static void main(String[] args) {
byte[] txt = {0x48, 0x65, 0x6C, 0x6C, 0x6F, 0x0D, 0x0A};
try{
System.out.write(txt);
}
catch(IOException e1){
System.out.println(txt);
}
}
}