How To Take N Strings As Input In Java