New to JAVA
I have this input and this output/
import java.util.List;
input:public class Solution{ List<Integer> lenght(List<Character> inputList){ body of method}}
expected output: [9,7,8]
My syntax for processing it/
List<Integer> lenghts = new ArrayList();
it says error can't find symbol for the line above. My syntax is wrong (I think it's out dated, from an old tutorial)
Can someone please tell me the correct syntax for the the variable to the input and out put. Thank you.
importdeclarations at the top of your code?java.util.List- small j for Java, capital L for List. You'll also needjava.util.ArrayList.import java.util.**in animport, a kitten dies. javadude.com/posts/20040522-import-on-demand-is-evil