Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

suppose we have one String s="india is my country"; now we
get the o/p "like country my is India". what is the logic?

Answer Posted / neeraj03

String[] x1=s.split(" ");
for( int x2=x1.length-1; x2 >= 0; x2-- )
{
System.out.print( x1[x2] );
System.out.print( " ");
}

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a java executable jar file?

927


What's the difference between authentication and authorization? : java security

929


Can java program run without jdk?

862


What does persist mean in java?

916


How do you count in java?

866


How do you check if java is installed on windows command prompt?

853


Why is javac not recognized?

818


Who created eclipse?

886


How many types of jdk are there?

941


What is singleton pattern in java?

800


What is explicit casting?

901


Do I need jdk or jre?

810


Are streams faster than for loops?

853


What is the difference between a jdk and a jvm?

852


Is lambda cheaper than ec2?

866