Rumel, welcome to the java world, and it's easy ...
First enter the name of the method (start typing it and use Ctrl + Space to autofill if you want ...)
newStringList()
Using the cursor on the method or parenthesis, now press Ctrl + Alt + V (refactor: Imagine the variable) and enter the desired variable name (instead of the default value, which is equal to strings ).
List<String> strings = newStringList();
Good luck
source share