@@ -0,0 +1,487 @@
+package leetcode;%0A%0A/**%0A * https://leetcode.com/problems/convert-binary-number-in-a-linked-list-to-integer/%0A */%0Apublic class Problem1290 %7B%0A    public static class ListNode %7B%0A        int val;%0A        ListNode next;%0A%0A        ListNode(int x) %7B%0A            val = x;%0A        %7D%0A    %7D%0A%0A    public int getDecimalValue(ListNode head) %7B%0A        String s = %22%22;%0A        for (ListNode n = head; n != null; n = n.next) %7B%0A            s += n.val;%0A        %7D%0A        return Integer.parseInt(s, 2);%0A    %7D%0A%7D%0A

Solve problem 1290