java comparing the first 2 characters
<p>I want to find in a Text the starting is number followed by .</p>

<pre><code>example:
1.
11.
111.
</code></pre>

<p>My code for x. ( x is number) this is working . issue is when x is more than 2 digits.</p>

<pre><code>x= Character.isDigit(line.charAt(0));
if(x)
if (line.charAt(1)=='.')
</code></pre>

<p>How can I extend this logic to see if x is a integer followed by .</p>

<p>My first issue is :
I need to fond the given line has x. format or not where x is a integr</p>
