Exercise 7-1 Enhance the Line Item applicationThis exercise guides you dịch - Exercise 7-1 Enhance the Line Item applicationThis exercise guides you Việt làm thế nào để nói

Exercise 7-1 Enhance the Line Item

Exercise 7-1 Enhance the Line Item application
This exercise guides you through the process of testing and enhancing the Line
Item application that is presented in this chapter.
1. Open the project named ch07_exl_LineItem that’s in the ex_starts directory.
Then, review the code for the LineltemApp, Validator, Product, Lineltem, and
ProductDB classes.
2. Run the project and test it with valid codes like “java”, “jsps”, and “mcb2” to
make sure that this application works correctly. Then, test it with an invalid
code to see how that works.
3. Add another product to the ProductDB class. Its code should be “txtp”, its
description should be “TextPad”, and its price should be $20.00. Then, test the
application again with the new product code. This shows that you can make a
change to a class without affecting the other classes that use it.
4. Modify the methods for the Validator class so they are regular methods
instead of static methods. Then, add a constructor to the Validator class that
takes zero arguments.
5. Modify the LineltemApp class so it creates a Validator object named v from
the Validator class. Then, use the Validator object to call the methods of the
Validator class.
6. Run the project and test it to make sure it works the same
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
Exercise 7-1 Enhance the Line Item applicationThis exercise guides you through the process of testing and enhancing the LineItem application that is presented in this chapter.1. Open the project named ch07_exl_LineItem that’s in the ex_starts directory.Then, review the code for the LineltemApp, Validator, Product, Lineltem, andProductDB classes.2. Run the project and test it with valid codes like “java”, “jsps”, and “mcb2” tomake sure that this application works correctly. Then, test it with an invalidcode to see how that works.3. Add another product to the ProductDB class. Its code should be “txtp”, itsdescription should be “TextPad”, and its price should be $20.00. Then, test theapplication again with the new product code. This shows that you can make achange to a class without affecting the other classes that use it.4. Modify the methods for the Validator class so they are regular methodsinstead of static methods. Then, add a constructor to the Validator class thattakes zero arguments.5. Modify the LineltemApp class so it creates a Validator object named v fromthe Validator class. Then, use the Validator object to call the methods of theValidator class.6. Run the project and test it to make sure it works the same
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
Tập thể dục 7-1 Tăng cường các mục dòng ứng dụng
Bài tập này sẽ hướng dẫn bạn thông qua quá trình thử nghiệm và nâng cao Line
mục ứng dụng được trình bày trong chương này.
1. Mở dự án có tên ch07_exl_LineItem đó là trong thư mục ex_starts.
Sau đó, xem xét các mã cho các LineltemApp, Validator, sản phẩm, Lineltem, và
ProductDB lớp.
2. Khởi động dự án và kiểm tra nó với các mã có giá trị như "java", "JSP", và "mcb2" để
đảm bảo rằng ứng dụng này hoạt động chính xác. Sau đó, thử nghiệm nó với một không hợp lệ
mã để xem làm thế nào mà các công trình.
3. Thêm một sản phẩm khác cho các lớp ProductDB. Mã của nó cần được "txtp", nó
mô tả phải là "TextPad", và giá của nó sẽ là $ 20.00. Sau đó, kiểm tra các
ứng dụng một lần nữa với mã sản phẩm mới. Điều này cho thấy rằng bạn có thể làm cho một
sự thay đổi đến một lớp học mà không ảnh hưởng đến các lớp khác mà sử dụng nó.
4. Sửa đổi phương pháp cho lớp Validator để họ có phương pháp thông thường
thay vì phương pháp tĩnh. Sau đó, thêm một constructor cho lớp Validator
mất không đối số.
5. Sửa đổi các lớp LineltemApp nên nó tạo ra một đối tượng Validator tên v từ
lớp Validator. Sau đó, sử dụng các đối tượng Validator để gọi các phương thức của
lớp Validator.
6. Khởi động dự án và kiểm tra nó để đảm bảo nó hoạt động giống
đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2024 I Love Translation. All reserved.

E-mail: