Write a program to display numeric value in reverse order.
Ex: I have given a number like 7584, It should display in
reverse order like 4857.
Answer Posted / deepak
public class A
{
public static void main(String str[])
{
String s="7584";
System.out.println(s);
s.reverse();
System.out.println(s);
}}
Is This Answer Correct ? | 7 Yes | 9 No |
Post New Answer View All Answers
I am newbie in J2EE & looking for strong basic behind each concept as, Why do we use private access specifier before each variable of type property bcoz ultimately to access it outside the class we use public method as getter & setter ? If we use getter & setter to access it outside the class so better we make variable as public so that it is easily available outside of the class... Please guide me why do we use as private ????
What is the preferred size of a component in java?
What is the difference between load() and get()?
i want test pattern of zylog company and some examples also
Is java 100 percent pure object oriented?
Who gave the name java?
What is general entity?
What is java application server?
What is the concept of connection pooling?
What is java secure socket extension (jsse)?
What is wildfly java?
Why java is oop language?
whay java does not support bass by reference
What are types of j2ee clients?
What are web technologies in java?