what does tje following method do?
void blur(char[] z,String st) {
if(z.length<st.length())return; for(int j=0;j<st.legth;j++) { z[j]=st.charAt(j);
}
}
1) it determines if the array contains the same characters as the string.
2) it copies characters from the array to string.
3)it creates new array that contains same characters as the string.
4)if there are enough slots in the array it copies characters one by one from the string to array.
Answers
Answered by
0
Answer:
Write a program to input a number and check whether it is Magic Number' or not
Display the message accordingly.
A number is said to be a magic number if the eventual sum of digits of the number
is one.
Sample Input : 55
Then, 5 + 5 = 10,1 + 0 = 1
Sample Output: Hence, 55 is a Magic Number.
Similarly, 289 is a Magic Number.
when divided b
Similar questions