@@ -0,0 +1,1254 @@
+package com.javarush.task.task14.task1418;%0A%0Aimport java.util.LinkedList;%0Aimport java.util.List;%0A%0A/* %0A%D0%98%D1%81%D0%BF%D1%80%D0%B0%D0%B2%D1%8C %D1%87%D0%B5%D1%82%D1%8B%D1%80%D0%B5 %D0%BE%D1%88%D0%B8%D0%B1%D0%BA%D0%B8%0A*/%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) %7B%0A        List%3CNumber%3E list = new LinkedList%3CNumber%3E();%0A        initList(list);%0A        printListValues(list);%0A        processCastedObjects(list);%0A    %7D%0A%0A    public static void initList(List%3CNumber%3E list) %7B%0A        //3%0A        list.add(new Double(1000f));%0A        list.add(new Double(%22123e-445632%22));%0A        list.add(new Float(-90 / -3));%0A        list.remove(new Double(%22123e-445632%22));%0A    %7D%0A%0A    public static void printListValues(List%3CNumber%3E list) %7B%0A        //4 - %D0%98%D1%81%D0%BF%D1%80%D0%B0%D0%B2%D1%8C 2 %D0%BE%D1%88%D0%B8%D0%B1%D0%BA%D0%B8%0A        for (int i = 0; i %3C list.size(); i++) %7B%0A            System.out.println(list.get(i));%0A        %7D%0A    %7D%0A%0A    public static void processCastedObjects(List%3CNumber%3E list) %7B%0A        //5%0A        for (Number object : list) %7B%0A            //%D0%98%D1%81%D0%BF%D1%80%D0%B0%D0%B2%D1%8C 2 %D0%BE%D1%88%D0%B8%D0%B1%D0%BA%D0%B8%0A            if (object instanceof Float) %7B%0A                System.out.println(%22Is float value defined? %22 + !(((Float) object).isNaN()));%0A            %7D else if (object instanceof Double) %7B%0A                System.out.println(%22Is double value infinite? %22 + ((Double) object).isInfinite());%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

Complete task1418