title: how Seperate a string in java without using functions like split & stringtokenizer?
body: <p>I want to separate a string without using split .can anybody help with my problem I am tried but I cannot find the exact logic. I did separated string with split function and stringtokenizer .</p>
  
  <p>I solved later.. 
  `package File;</p>
  
  <p>import java.util.Scanner;</p>
  
  <p>public class Java_String_separating {</p>
  
  <pre><code>public static void main(String[] args) {
  
      Scanner sc = new Scanner(System.in);
      String str = sc.nextLine();
  
      for(int i = 0; i &lt;str.length();i++) {
          if(str.charAt(i)==' ') {
              System.out.println();
              continue;
          }
          System.out.print(str.charAt(i));
      }
      sc.close();
  }
  </code></pre>
  
  <p>}`</p>