my current code is
the value of a.readline() when i = 5 is true. I'm getting confused on why the checkbox isn't setting itself to true.HTML Code:FileInputStream input = new FileInputStream(Util.getWorkingDirectory().getAbsolutePath() + File.separator + LoadTextfield.getText() + ".txt"); BufferedReader a = new BufferedReader(new InputStreamReader(input)); for (i = 0; i < 100; i++){ if (i == 5){ PickUpBonesCheckbox.setSelected(Boolean.valueOf(a.readLine())); }
It works fine when i use PickUpBonesCheckbox.setSelected(Boolean.valueOf("t rue");