title: Print Odd numbers from users input
body: <p>How can I get all the odds number on the users input. Example: input : "avhguhrgr18543" the output should be "153" but in my code it  gives up to 9... I really need the code that only get the odd number base on the users input. </p>
  
  <pre><code>String s;
  System.out.println("Input anything you want: ");
  Scanner scanner = new Scanner(System.in);
  s = scanner.nextLine();
  
  int n = 10;
  System.out.println("Odd Numbers are");
  for(int i=1;i&lt;=n;i++) {
    if(i%2!=0) {
      System.out.print(i + " ");
    }
  }
  </code></pre>