TAILIEUCHUNG - About Java and xBaseJ- P4

Tham khảo tài liệu 'about java and xbasej- p4', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Chapter 1 - Fundamentals 61 if MAX_NAME_LEN curr_width MAX_NAME_LEN else curr_width None of you really wanted me to use if statements inside of switch cases though if you work in the real world you will see them quite often. As a general rule you are not in trouble until your nesting gets more than 3 levels deep. The display logic for each column isn complex but might require a bit of explanation. MAX_NAME_LEN is defined to be eleven because ten used to be the maximum length for a column name under most xBASE flavors and eleven ensures we will have at least one trailing space. When displaying a data column I want this example to be at least wide enough to display the name. One thing which really annoys me about most spreadsheet applications is they size columns to the data size even when the column is a Boolean. When we are dealing with a character field I use the - in the format string to left-justify the output. Most everything else I simply let slam against the right. I don bother formatting date values in this example. You can write thousands of lines of code formatting dates in every format imaginable and still somebody will want the date formatted differently. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 public class testShowMe public static void main String args showMe s new showMe n n Entire n Records 2 and 3 from 2 3 n First record from 1 end main method end class testShowMe The test module simply displays various things from the two DBF files created by the sample programs which are posted on the xBaseJ Web site. I have shown you the program which creates the file in this book. We don treally have any need to cover the

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.