title: Call Object with string - Java
body: <p>Text file working as data base in the following format</p>
  
  <pre><code>btnBar/Cafe/3.5
  btnBar_0/Bebida/1.0
  btnBar_1/Sumo/2.0
    ^       ^    ^
    |       |    |
  btn var |text|price
  </code></pre>
  
  <p>GUI:<br>
  <a href="https://i.stack.imgur.com/q861S.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q861S.png" alt="Image"></a></p>
  
  <pre><code>    InputStream is = MainWindow.class.getResourceAsStream("DB.txt");
      Scanner sc = new Scanner(is)
  </code></pre>
  
  <p>Using this while scanner has a next line its has to set every gui button name,price....What methodology should I use?</p>