Question
/* File: BicycleTest.java Put your name and other required information here Follow the directions below */ public class BicycleTest { public static void main( String[]
/* File: BicycleTest.java Put your name and other required information here Follow the directions below */ public class BicycleTest { public static void main( String[] args ) { // Declare 1 Bicycle reference variable - do NOT initialize // Declare 1 String reference variable for the owner's name // Do NOT initialize // Declare 1 integer variable for license number // Do NOT initialize // Assign your full name and a license number to the String and // integer variables (initialize the variables) // Assign a Bicycle object to the Bicycle reference variable // Use the Bicycle class constructor to create the object // Use the variables you created as arguments to the constructor // Output the owner's name and license number in printf statements // using the Bicycle reference variable and the get methods. // For example: bike.getOwnerName() // Change the owner's name to Homer Simpson using setOwnerName // Output the owner's name and license number again in printf statements // using the Bicycle reference variable and the get methods. } } creating all what they required
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started