結局これが一番わかりやすいだろ
Integer[] list = {1,2,3,4,5};
Integer[] list2 = {};
for (x :list) {
 if(x > 3) {
  list2.add(x ^ 2)
 }
}