notifyAllallow for the program to decide which display to draw to the screen based on user input.
LightSensor. Place the bar slightly to the left side of the LCD screen and place the actual numerical value of the light intensity to the right of the bar.
SoundSensorincreases. The program should then scroll the line graph in much the same way as a seismograph as new sound intensity values are recorded. This should allow for the most recent values to remain plotted on the screen.
TouchSensorto switch the displays; merely holding the sensor down will not make the program continuously switch back and forth from one display to another.
LightSensor; it is not wise to make the height of the bar the actual normalized value of the light sensor's input.
isPressedthat is provided for the
TouchSensoris pressed. Therefore, if the user were to hold the sensor down, the program would continue to switch back and forth between the two displays; in other words, if the program only utilized the
isPressedmethod, it is very difficult to switch to a desired display easily. This should be taken care of by the implementation and design of a well made listener. This holds true also the listener for the user to exit the program.
joinmethod is not necessary for this project. The main thread should exit after starting the other threads. It is not mandatory for the main thread to wait until all of the other threads have finished since the main thread has no need for any data that is held by the other threads.