SW409 Homework
static, synchronized methods:
Dial.speaker("203,,555-1212");
Dial.modem("203,,555-1313");
The Dial.speaker works with DTMF. The Dial.modem works with a serial port. Should we use an interface for this? Why or why not? What would the interface look like if we used one? Would:
public interface Dialable {
public static synchronized void dial(String s); }be an ok interface? Why or why not?
String.toCharArray
may help you.
Pulsing Rate:
Minimum duration of two-frequency tone signal:
50 ms normally;
90 ms if transmitted by radio. Minimum inter-digital time: 45 ms.
Use the 90 ms duration for your program. Keep the 45 ms inter-digit
time.
be sure to include digits "0123456789*#ABCD". Your program should not be case sensitive.
How can we make native methods portable? Can we load the correct libraries on demand? How do we know where to get them, or how to install them? How can we detect their proper installation?
What is java web start? Can this help to load correct native libraries? Can you try it?