import java.io.IOException;

public class Demo {
    public static void main(String[] args) throws IOException, InterruptedException {
        Process process = new ProcessBuilder("cmd", "/c", "exit /b 259").start();
        int exitValue = process.waitFor();
        System.out.println(exitValue);
    }
}
