title: print all possible sub-strings in a given string without repetition of charactes
body: <p>I found substring programs here which are printing only largest substrings.
  but I am trying to code for printing all possible substrings in a given string,and among all those sub-strings largest sub-string also printed on console.so please any one can help me to do this without using String methods
  I tried this program but I am getting string without repeating character below</p>
  
  <pre><code>public class SubSring {
       static Scanner sc = new Scanner(System.in);
          static String str = sc.nextLine();
  
          public static void main(String[] args) {
             String store="";
              for (int i = 0; i &lt; str.length(); i++) {
                  if (store.indexOf(str.charAt(i))&lt;0) {
                      store = store+str.charAt(i);
                  }
              }
              System.out.println("Result word " +store);
  
          }
  
      }
  </code></pre>