title: How To get seperate 3 string and remove '-'..?
body: <pre><code>public static void main(String[] args) {
      // TODO Auto-generated method stub
  
      String a="Apple-banana-pineapple";
  
      StringTokenizer st = new StringTokenizer(a,"-"); 
  
      String key = st.nextToken(); 
      String val = st.nextToken(); 
      System.out.println("key"+key);
      System.out.println("Values"+val);
  }
  </code></pre>