title: Is there an equivalent method to C's scanf in Java?
body: <p>Java has the notion of <a href="https://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html#syntax" rel="nofollow noreferrer">format strings</a>, bearing a strong resemblance to <a href="https://en.wikipedia.org/wiki/Printf_format_string" rel="nofollow noreferrer">format strings in other languages</a>. It is used in JDK methods like <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#format(java.lang.String,%20java.lang.Object...)" rel="nofollow noreferrer"><code>String#format()</code></a> for output conversion.</p>
  <p>I was wondering if there's an input conversion method akin to <a href="https://linux.die.net/man/3/scanf" rel="nofollow noreferrer">C's <code>scanf</code></a> in Java?</p>