1.using string args[] in main function
2.using scanners in import java.util.Scanner;
3.using BufferedStream
Actually there are many ways to give user input in java.These are only few
2.using scanners in import java.util.Scanner;
3.using BufferedStream
Actually there are many ways to give user input in java.These are only few