title: Getting Single Value from my ObservableList
body: <pre><code>    chkbrg.setOnAction(e -&gt; {list.getItems().add("Chicken Burger         "+ chkbrgval); 
          total += chkbrgval;
          ioi.setText(""+"$" +total);
          });
  
      ListView&lt;String&gt; list = new ListView&lt;&gt;();
      ObservableList&lt;String&gt; non;
      non=list.getSelectionModel().getSelectedItems();    
  
      for(String m:non){
          list.getItems().remove(m);
          System.out.println(m);
      }
  </code></pre>
  
  <p>Hello, I just want to know how I can I get the variable value from this ObservableList as adding them is easy with this CODE but i am unable to subtract them back from the "total" variable. How can i know what Variable is selected in 'm' and how can i subtract that value.</p>
  
  <p>Thank You.</p>