I have an assignment: Write a client program Permutation.java
that takes an integer k
as a command-line argument; reads in a sequence of strings from standard input using StdIn.readString()
...
Here is my code:
public class Permutation {
public static void main(String[] args) {
int k = Integer.parseInt(args[0]);
String[] inputStrings = StdIn.readStrings();
}
}
How to compile it in Windows command line?
I tried
javac Permutation.java
But got an error
error: cannot find symbol String[] inputStrings = StdIn.readStrings();`
I use IntelliJ IDEA, external library StdIn is added to the project.