Answer:
(s.charAt(0) != s.charAt(s.length()-1))
Explanation:
public class Palindrome
{
public static void main(String[] args) {
System.out.println(isPalindrome("car"));
System.out.println(isPalindrome("carac"));
}
public static boolean isPalindrome(String s) {
if (s.length() <= 1)
return true;
else if (s.charAt(0) != s.charAt(s.length()-1))
return false;
else
return isPalindrome(s.substring(1, s.length() - 1));
}
}
You may see the whole code above with two test scenarios.
The part that needs to be filled is the base case that if the character at position 0 is not equal to the character at the last position in the string, that means the string is not a palindrome. (If this condition meets, it checks for the second and the one before the last position, and keeps checking)
<span>It should be single-user/multitasking os.</span>
Answer:
a. device administration
Explanation:
Device Administration is a powerful API feature on the Android framework which was first introduced in Android version 2.2. It offers some features at the system level that enables some other key features such as the storage on a device, remotely wiping or enforcing password policies.
It is also utilized in uninstalling your application from the device or to capture a picture by the use of camera when screen is lock.
Technology helps people with its multiple tools that it offers to carry out various jobs and tasks in our daily lives, for example: one of those technological tools is the computer and the cell phone, among others, these are the most common and the ones that help us perform tasks, consultations and a variety of things.