I need help please send me reply:
Write a program "if given a string like 'HAT', the
combination's returned should be like ATH,THA,TAH in java"?
Answer Posted / nijamuddin
Class Help
{
Public stattic void main(String args[])
string s;
if(s=="HAT")
{
System.out.println("ATH, Tha,tah";
}
}
| Is This Answer Correct ? | 3 Yes | 29 No |
Post New Answer View All Answers
What are the concepts of 'OOPS'?
How are observer and observable used in java programming?
Can we extend singleton class?
What is the use of a copy constructor?
What is a default constructor and also define copy contrucyor?
What are anonymous inner classes?
What is a predicate method?
What happens if main method is not static?
What is substring 1 in java?
Does java set allow duplicates?
What is a numeric string?
Is there any difference between nested classes and inner classes?
Can a class with private constructor be extended?
What is difference overloading and overriding?
How does compareto work in java?