Question
Need help with these two java questions! 1. Assume you have created a data definition class, Desk.java, to represent a desk and an implementation class,
Need help with these two java questions!
1. Assume you have created a data definition class, Desk.java, to represent a desk and an implementation class, Classroom.java, to represent a classroom that holds desks.
Write one Java statement that could be used in the implementation class to represent 20 Desk references.
2. Consider you have created the following code in an implementation class, based on having a Channel.java data definition class:
Channel[] station = new Channel[300]; JOptionPane.showMessageDialog(null, station[2]);
What will be output? Briefly (1-2 sentences) explain your answer using course terminology.
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