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 reflection api? How are they implemented?

1093


How does java handle integer overflows and underflows?

1102


What is the java api?

981


Can we extract main method from another class?

1019


What is the resourcebundle class?

997


What if I write static public void instead of public static void?

926


Are jvm’s platform independent?

965


What do you understand by casting in java language? What are the types of casting?

921


What is the first argument of the string array in main method?

1023


What is the locale class?

1018