Update OrderManager.java, UserManager.java

Modify the regular "closing resource" method to try-with-resources block
added since JDK7, for example

try(FileInputStream in = new FileInputStream(new File("D:\1.txt")) {
// Do something here
}

after the block the inputstream resources will be closed automatically.