Can I work with the values in the text file properties?
For example, read the value and add it to logical operations?
If not, then with what can you read and work with the values in a text file?
Properties props = new Properties(); try { props.load(in); } catch (IOException e1) { e1.printStackTrace(); } String answer = props.getProperty("OTBET"); if(answer == "4") System.out.print("answer = 4"); The problem is that I can not compare, nothing happens!
answer.equals("4")necessary. lines through == do not compare - Senior Pomidor