摘要: package DataStructures.Lists; public class CircleLinkedList<E> { private static class Node<E> { Node<E> next; E value; private Node(E value, Node<E> n 阅读全文
posted @ 2019-11-24 21:05 zhangyu63 阅读(214) 评论(0) 推荐(0) 编辑
摘要: // hiding/Lunch.java // Demonstrates class access specifiers. Make a class // effectively private with private constructors: class Soup1 { private Sou 阅读全文
posted @ 2019-11-24 18:50 zhangyu63 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 1. this者谁? // housekeeping/PassingThis.java class Person { public void eat(Apple apple) { Apple peeled = apple.getPeeled(); System.out.println("Yummy" 阅读全文
posted @ 2019-11-24 17:39 zhangyu63 阅读(194) 评论(0) 推荐(0) 编辑