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
Regular expression Sequence of characters and symbols Useful for validating input and ensuring data format E.g., ZIP code Facilitate the construction of a compiler Regular-expression operations in String Method matches Matches the contents of a String to regular expression Returns a boolean indicating whether the match succeeded
83 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1086 | Lượt tải: 0
Precision Meaning varies depending on data type Floating point Number of digits to appear after decimal (e or E and f) Maximum number of significant digits (g or G) Strings Maximum number of characters to be written from string Format Use a dot (.) then precision number after % e.g., %.3f
49 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 938 | Lượt tải: 0
To add a Java DB database server in Netbeans Select Tools > Options to display the Netbeans Options dialog Click the Advanced Options button to display the Advanced Options dialog Under IDE Configuration, expand the Server and External Tool Settings node and select Java DB Database If the Java DB properties are not already configured, set the J...
114 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 957 | Lượt tải: 0
When using database columns to provide suggestions in an AutoComplete Text Field, sorting the columns eliminates the need to check every row in the database for potential matches. This significantly improves performance when dealing with a large database.
84 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 981 | Lượt tải: 0
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: 1103 | 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: 1166 | 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: 1075 | 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: 1345 | 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: 963 | 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: 936 | Lượt tải: 0
Copyright © 2025 Tai-Lieu.com - Hướng dẫn học sinh giải bài tập trong SGK, Thư viện sáng kiến kinh nghiệm hay, Thư viện đề thi