title: if/else depending on whether input is a number
body: <p>I want to write a print age program using if/else.</p>
  <p>If given an non-numeric input then, it should print &quot;sorry numeric value expected.&quot;</p>
  <p>This is what I have so far:</p>
  <pre><code> import java.util.*
   //import javax.print.attribute.IntegerSyntax
   fun main(agrs : Array&lt;String&gt;) {
        //var value1  = 11.0fe is $age&quot;)
       val input = Scanner(System.`in`)
             println(&quot;enter your Age &quot;)
        val a = input.nextInt()
             println(&quot;your age is : &quot; + a)
        
  </code></pre>