DEV_BUT1/DEV2.1/CM1/Exercice1/Decapite.java
2023-04-04 14:03:16 +02:00

14 lines
306 B
Java

import java.awt.*;
//MELIANI SAMY (TP1)
public class Decapite{
public static void main(String[] args) {
boolean ihl1= GraphicsEnvironment.isHeadless();
GraphicsEnvironment ihl2 = new GraphicsEnvironment();
boolean yes = ihl2.isHeadlessInstance();
if(ihl1){
System.out.println("oui");
}
}
}