Write a user defined program in Java to accept a word. Pass it to a function magic(String str). The function checks the string for the presence of consecutive letters. If two letters are consecutive at any position then the function prints "It is a magic string", otherwise it prints "It is not a magic string"
Answers
Answered by
0
Answer:
(I)number
(ii)text
(iii) formula
Similar questions