The problems solved are all from the end of chapter exercises in the textbook. This project is released under and protected by the MIT License If you have any questions, suggestions, or feedback, please feel free to write to I look forward to hearing from you. Permission is hereby granted, free of charge, to any person BLUEJ EXERCISE SOLUTIONS LICENSE Obtaining a copy of this software and associated documentationįiles (the “Software”), to deal in the Software without through the Pearson Education web site and protected by a password. The teacher resources include slides, assignment ideas, and exercise solutions. The above copyright notice and this permission notice shall be Software is furnished to do so, subject to the following Restriction, including without limitation the rights to use,Ĭopy, modify, merge, publish, distribute, sublicense, and/or sellĬopies of the Software, and to permit persons to whom the THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,ĮXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES Included in all copies or substantial portions of the Software. NONINFRINGEMENT.Exercise 5.2 The documentation contains the following sections: OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND BLUEJ EXERCISE SOLUTIONS SOFTWARE The programs can all be executed via BlueJ or the Terminal. Overall description of the class: its purpose and how to use it A brief summary of the fields A brief summary of the constructors A brief summary of the methods A detailed description of the fields A detailed description of the constructorsĮxercise 5.4 Yes: public boolean endsWith(String suffix) Exercise 5.5 Yes: public int length() Exercise 5.7 Signature: public String trim() Example: String trimmedText = im() Control characters are treated as whitespace: ".it trims all ASCII control characters as well" Exercise 5.8 add the line: input = im() to the start()-method of SupportSystem Exercise 5.9 add the line: input = input.toLowerCase() to the start()-method of SupportSystem Exercise 5.10 boolean Exercise 5.11 if(input. a) Yes, an abstract class can have concrete methods. Follow the instructions in the relevant ExerciseAnswers / README.txt for detailed instructions. That is just the way it is - if it couldn't have concrete methods it would almost be the same as a Java interface. If it could, it would not be possible to instantiate an object of that class.ī) No, a concrete class can not have abstract methods. Since this project consists of exercise solutions, the problem sets themselves act as documentaion. when we created (instantiated) the two Car objects, BlueJ opened a dialog box and. The problems solved are all from the end of chapter exercises in the. 3.5 we will have a look at a good solution for this exercise.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |