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
How to perform selection sort in java?
How does varargs work in java?
What is the purpose of assert keyword used in jdk1.4.x?
In java, what is the difference between method overloading and method overriding?
How do you compare values in java?
Why do we need hashmap in java?
Do you need to import math in java?
What is tochararray in java?
What is the purpose of the system class in java?
What is covariant return type?
Why spring singleton is not thread safe?
How can you avoid serialization in child class if the base class is implementing the serializable interface?
What is a marker interface?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread
What is the symbol for space?