Just two methods need to have their visibility changed to public: void main and void connect (Connection con).
只有两个方法的可见性需要改为public: void main和void connect (Connection con)。
In line 13 of Listing 1, the connection object (con) is established as the "default" connection.
在清单1的第13行上,Connection对象(con)被建立为“默认”连接。
应用推荐