Answer:
public static boolean beginsWithZ(String word){
if(string == null || string.length() == 0)
return 0;
if(word.charAt(0) == 'Z' || word.charAt(0) == 'z')
return 1;
else
return 0;
}
Explanation:
This method is a boolean method, meaning it returns true if the string begins with Z or z and false otherwise. So:
The Java command charAt() let's you find the character at each position of the string, so i use it.
public static boolean beginsWithZ(String word){
if(string == null || string.length() == 0)
return 0;
if(word.charAt(0) == 'Z' || word.charAt(0) == 'z')
return 1;
else
return 0;
}
Answer:
A peer-to-peer network is one in which two or more PCs share files and access to devices such as printers without requiring a separate server computer or server software. ... A P2P network can be an ad hoc connection—a couple of computers connected via a Universal Serial Bus to transfer files.
Answer:
For listening sake
To listen to information from the computer
They receive audio input from the computer's sound card and produce audio output in the form of sound waves.