How To Get List As Input In Java