Sometimes i write a code in netbeans and try to run but it doesnt. i delete one letter and write it again after that it is working

For example piece line of code is like that

ArrayList<String>...