请写出以下java代码的输出内容[$##$] public class...
发布于 2022-03-03 16:32:07
请写出以下java代码的输出内容()
public class TestCount { public static void main(String args[]) { Count count = new Count( ) count.count(count.getCount( )).getCount( ) new Count( ).count(count.getCount( )) } public static class Count { volatile Integer count = 2018 public Count count(Integer count) { System.out.println(++count) return this } public Integer getCount( ) { System.out.println(++count) return count } } }
关注者
0
被浏览
33