Thư viện tài liệu trực tuyến miễn phí dành cho các bạn học sinh, sinh viên
Java Studio Creator 2 can automatically import any missing packages your Java file needs. For example, after adding the Properties object to Options.java, you can right click in the Java editor window and select Fix Imports to automatically import java.util.Properties.
145 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1195 | Lượt tải: 0
Most major database vendors provide their own JDBC database drivers, and many third-party vendors provide JDBC drivers as well. For more information on JDBC drivers, visit the Sun Microsystems JDBC Web site, servlet.java.sun.com/products/ jdbc/drivers.
144 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1331 | Lượt tải: 0
By default, applets cannot perform file processing Applets often limited in machine access Applets can communicate only with the machine from which it was originally downloaded Java Security API Digitally signed applets Applets given more privileges if from trusted source
96 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1155 | Lượt tải: 0
Even when using a bounded buffer, it is possible that a producer thread could fill the buffer, which would force the producer to wait until a consumer consumed a value to free an element in the buffer. Similarly, if the buffer is empty at any given time, a consumer thread must wait until the producer produces another value. The key to using a bound...
124 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1511 | Lượt tải: 0
Java applications’ appearances A program that uses Java’s Abstract Window Toolkit GUI components takes on the look-and-feel of the platform Allows users of the application on each platform to use GUI components with which they are already familiar Also introduces interesting portability issues Swing’s lightweight GUI components provide uniform ...
101 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1061 | Lượt tải: 0
Classes Image and ImageIcon – used to load and display images Displaying images Graphics method drawImage – used to draw image referenced by Image object (can be scaled) ImageIcon method paintIcon can be used to draw image referenced by ImageIcon object Loading images Applet method getImage loads an Image into an applet Applet method getDocum...
40 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1037 | Lượt tải: 0
Because Stack extends Vector, all public Vector methods can be called on Stack objects, even if the methods do not represent conventional stack operations. For example, Vector method add can be used to insert an element anywhere in a stack—an operation that could “corrupt” the stack. When manipulating a Stack, only methods push and pop should be us...
108 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1230 | Lượt tải: 0
Queue class that contains a reference to a List Method enqueue calls List method insertAtBack Method dequeue calls List method removeFromFront Method isEmpty calls List method isEmpty Method print calls List method print
68 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1151 | Lượt tải: 0
Linear search Searches each element sequentially If search key is not present Tests each element When algorithm reaches end of array, informs user search key is not present If search key is present Test each element until it finds a match
56 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1065 | Lượt tải: 0
Method call stack used to keep track of method calls and local variables within a method call Just as with nonrecursive programming, recursive method calls are placed at the top of the method call stack As recursive method calls return, their activation records are popped off the stack and the previous recursive calls continue executing Current ...
52 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1413 | Lượt tải: 0