S
subhabangalore
Dear Group,
I am trying to learn Java. I was trying to write a code for input from Console.
I found two ways to do it. One is by using import java.io.*; and the other is,
import java.util.Scanner;
If I assign a class name and start the console input from public static void main
both works fine.
But as I want to declare one function for it and like to call it in main body.
I am not being able to do that.
If any one of the learned members can kindly suggest it.
Regards,
Subhabrata.
I am trying to learn Java. I was trying to write a code for input from Console.
I found two ways to do it. One is by using import java.io.*; and the other is,
import java.util.Scanner;
If I assign a class name and start the console input from public static void main
both works fine.
But as I want to declare one function for it and like to call it in main body.
I am not being able to do that.
If any one of the learned members can kindly suggest it.
Regards,
Subhabrata.