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:
The image of truth table is attached.
Explanation:
In the truth table there is a separate table for the expression (A+B).C and for the expression (A.C)+(B.C) you can see in the truth table that the columns of (A+B).C is having same values as the (A.C)+(B.C).Hence we can conclude that (A+B).C is equal to (A.C)+(B.C).
Answer:
Douglas-fir, spruce, true fir, beech, and maple are toward the top of the list for oxygen release.Douglas-fir, spruce, true ...
Answer: A dragon name could be name Holls and at level 14 and can breathe fire
Explanation: