QUIERO UN CODIGO QUE ME APAGUE LA COMPUTADORA CUANDO LO EJECUTE EN NEATBEANS
import javax.swing.JOptionPane; public class Apagar { public static void main(String[] args) { String s = JOptionPane.showInputDialog("¿Quieres apagar tu computadora?"); if (s == "si") { System.exit(0); } else { System.out.println(s); } } }