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...

Linked List reverese program

Answer Posted / dsr

import java.util.Collections;
import java.util.LinkedList;


public class LikedListDemo {
public static void main(String[] args) {
LinkedList list = new LinkedList();
list.add("Raju");
list.add("Gopal");
list.add("Senthil");
list.add("nagesh");
System.out.println("list size....."+list.size());
System.out.println("list ....."+list);
Collections.reverse(list);
System.out.println("revese list ....."+list);
}
}

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is string [] args?

1060


What is difference between synchronize and concurrent collection in java?

1122


What is an class?

1091


What is module in oop?

1076


Can we have two methods in a class with the same name?

1108


What do you understand by looping in java? Explain the different types of loops.

1088


What is a condition in programming?

1053


what is session in java?

1322


What is methodological theory?

1038


What do the thread?class methods run() and start() do?

1076


Describe method overriding

1178


How does class forname work in java?

1023


What is meant by null and void?

1035


State one difference between a template class and class template.

1111


Is it possible to compare various strings with the help of == operator? What are the risks involved?

1127