Answer:
NFC chips
Explanation:
its specifically used to make secure transactions among other things
Answer:
import java.util.Scanner;
public class Pallindrome {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter the input string: ");
String word = in.nextLine();
System.out.println(isPallindrome(word));
}
public static String isPallindrome(String word){
String rev ="";
int len = word.length();
for ( int i = len - 1; i >= 0; i-- )
rev = rev + word.charAt(i);
if (word.equals(rev))
return word+" is palindrome";
else
return word+ " is not palindrome";
}
}
Explanation:
- Create the method in Java to receive a String parameter
- Using a for loop reverse the string
- Use another for loop to compare the characters of the original string and the reversed string
- If they are equal print palindrome
- else print not palindrome
- Within the main method prompt user for a sentence
- Call the method and pass the sentence entered by user
Answer:
Counting the number of elements in the array list smaller than temp.
Explanation:
We have an array list,a previously initialized integer temp and a an integer c initialized with 0.
In the code a for loop is used to iterate over the array and it is checking if the element at jth index is less than temp if it is then increasing the variable c by 1.
Hence when the loop ends the c will be having the count of the integers in array list that are smaller than temp.
The CPU socket hope that helps
def missing_num(lst):
for n in range(1,11):
if n not in lst:
print(n)
lst = (1,3,4,5,6,7,8,9,10)
missing_num(lst)
I hope this helps!