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 the difference between collection and stream?

920


Are streams faster than for loops?

897


Which version of jdk is required for netbeans 8.0 2?

830


What is the means of java?

865


can anyone tell me what kind of questions are asked for core java exam in aptech

1833


What is jndi datasource in java?

872


How do I open the java console in windows 10?

1015


ioc vs dependency injection?

2308


What is gui in java with examples?

993


What is a flatmap?

872


How can you work with permissions from your .net application? : java security

889


What is jdk for netbeans ide?

996


What services can invoke lambda?

887


How can I swap two variables without using a third variable?

950


What is the use of rs next () in java?

883