AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Java programming with bluej1/14/2024 When a method requires a parameter you will get a second window to enter that parameter.Java Programming with BlueJMethod Signatures For example the moveVertical method requires a distance and changeColor requires a color Parameters to methods Java Programming with BlueJParameters Some methods require a parameter be passed to it. makeVisible( ) from the menu creates the blue ball in another window You should see a blue ball appear in a separate window.Click the method to invoke from the menu, try makeVisible( ).Right-click the object on the object bench.Java Programming with BlueJInvoking Methods Note the naming conventions of lowercase for objects and uppercase for classes Class Object on the Object Bench.To create an instance of the Circle class in the shapes project.Java Programming with BlueJCreating Instances of Classes Opening setup You may need to COMPILE the given files If each class has /’s under them RIGHT click on each class Select Compile The shapes project initially looks like this: The shapes project Java Programming with BlueJ We will examine the features of BlueJ by working with the shapes project. Opening a preexisting BlueJ Project Will need to do this: For THIS presentation And whenever you SAVE and return to a project Directions Open BlueJ Project -> Open Project -> C:\BlueJ\examples\shapes Java Programming with BlueJObjectives View the source code Give examples of different data types Identify the 4 parts of a method signature Identify comments Identify accessor and mutator methods Use the printing methods Use selection statements Identify local variables Java Programming with BlueJObjectives By the end of this presentation you should be able to: Open a BlueJ project Create an instance of a class Invoke methods of a class Toggle between the project window and the output window Identify parameters to a method Java Programming with BlueJ (Gift from Krysten Hall) Editted by Mr.
0 Comments
Read More
Leave a Reply. |