Java 8 effectively final

首先,看如下代碼:java public static void main(String[] args) { int a = 1; int b = 2; b = 3; Runnable runnable = ()->{ System.out.println(a); System.out.println(b); //此行報錯。
相關文章
相關標籤/搜索