Read-only archive. Login and posting are unavailable.

PDA

View Full Version : [help gấp]Đề thi Java


nguoimoidenratga
12-06-2010, 15:32
Các bạn có thể làm giúp mình vài câu dưới đây được ko?Mình làm mãi mà vẫn bị báo thiếu assert.Ko biết dùng thế nào cả

Write a java program demonstrate Assertion as shown in Fig 1 : Program should prompt the user to enter a number between 0 and 10 , and then read the number from the command line . The assert statement should determines whether the user entered a number within the valid range . If the user entered a number is out of range , then the program reports an error . Otherwise , the program proceeds normally
1.Marks for writing program to sort and display the output
2.Marks for the logic given for sorting an integer array in descending order
3.Marks for writing program to accept number for assertion
4.Marks for the logic and display required messages

Viết bằng netbeans nha các bác

nguoimoidenratga
12-06-2010, 16:07
ko ai làm được hay sao vậy:ah::ah::ah: