Home Answers Viewqa Java-Beginners Sorting Router Interface in a list.

 
 


Md Jamaluddin khan
Sorting Router Interface in a list.
1 Answer(s)      4 months and 6 days ago
Posted in : Java Beginners

Hi All,

I have list which contains router interface as GigabitEthernet 1/0, GigabitEthernet 1/1,GigabitEthernet 1/11, GigabitEthernet 1/10, GigabitEthernet 1/3

Now i am applying Collection.sort(list) to sort, but it causes a problem it sorts something like this GigabitEthernet 1/0, GigabitEthernet 1/1, GigabitEthernet 1/10, GigabitEthernet 1/11,
GigabitEthernet 1/3

But in our case it should sort it like this GigabitEthernet 1/0, GigabitEthernet 1/1, GigabitEthernet 1/3, GigabitEthernet 1/10, GigabitEthernet 1/11

How can i achieve this type of sorting in java. It's really urgent. Help is greatly required and thanks in advance.

View Answers

January 22, 2013 at 3:05 PM


I am still waiting for an answer from anybody. It's a bit urgent. Please suggest me something.









Related Pages:
Sorting Router Interface in a list.
Sorting Router Interface in a list.  Hi All, I have list which contains router interface as GigabitEthernet 1/0, GigabitEthernet 1/1,GigabitEthernet... Collection.sort(list) to sort, but it causes a problem it sorts something like
Router
Router  hii, What is the router ?   hello, Router is a layer 3 device. it route the packet from one LAN to different LAN. For avoid the broadcast we use router
List interface
List interface  What is the List interface
VoIP Router
VoIP Router          Broadband Phone Services VoIP Router D-Link introduces the DVG-1402S Broadband Phone Service VoIP Router. The DVG-1402S is designed
List interface
List interface  Give me some of the real time examples that can be developed based on List and its implemented classes
Open Source Router
Open Source Router Open-source router firm looks Vyatta, an open-source router company, released the first beta version of its WAN router code... as an open-source router software project. Vyatta's code combines a modified Linux
What is the List interface?
What is the List interface?  Hi, What is the List interface? thanks,   The list interface is nothing but a subtype of tha java ordered... is list Interface in Java Program
sorting numbers
sorting numbers  How to sort the numbers in ascending order  ...); System.out.println("Enter List Elements: "); ArrayList<Integer> list=new... in ascending order: "); Collections.sort(list); for(int i=0;i<
Sorting an ArrayList
Sorting an ArrayList  print("code sample");Hello All, I am working on a program for school and I am having trouble with sorting my list. The numbers I receive in my output are correct, but not in ascending order as required
number sorting
number sorting  program to sort a list of numbers in descending order...(System.in); System.out.println("Enter List Elements: "); ArrayList<Integer> list=new ArrayList<Integer>(); for(int i=0;i<
Java Sorting
;Candidate> list = new ArrayList<Candidate>(); list.add(new Candidate...)); System.out.println(" "); int v=0; String n=""; Collections.sort(list,new VoteComparator()); for(Candidate data: list){ v
router connectivity
router connectivity  how can connect 4-5 system in LAN for routing and how to connect two routers to each other show mw code
Introduction to List and Queue Interface
Introduction to List and Queue Interface        List Interface : The List interface extends the Collection interface to define
sorting
sorting   write a program to arrange sorting in rows,column and diagonal
SORTING - Java Interview Questions
); System.out.println("Items are ="+list); Collections.sort(list); System.out.println("Items after sorting are ="+list); } } Thanks...{ public static void main(String args[]) { ArrayList list= new ArrayList
Sorting text file
Sorting text file  Hello friends, i'm writing search page for my local website. i'm storing all file list in text file. And also adding a value... according to begin value. Text File having list like this: 5| 3| can anyone
Alphabetically sorting order
Alphabetically sorting order  Write a java program that takes a list...) { Scanner input=new Scanner(System.in); System.out.println("Enter List Elements: "); ArrayList<String> list=new ArrayList<String>
Sorting
Sorting  can any help me know which sorting algorithm java uses for sorting collection and arrays
Sorting Country names alphabetically
Sorting Country names alphabetically  Hello, I have a list of country names in an array. I need a jsp code which will sort me the country names in an alphaberical order. It would be more useful when I get the coding using
sorting
sorting  write to a program to arrange the sorting in rows, column and digonal
sorting
sorting  how to do sorting without using bubble sort,selection sort
Java interface
Java interface  What is the List interface
Collection Interface
Java NotesCollection Interface The Collection interface is the parent of the List and Set interfaces, but not Map. Assume the following declaration..., it will always be true for adding to a List, but will be false
Collection Interface
Java NotesCollection Interface The Collection interface is the parent of the List and Set interfaces, but not Map. Assume the following declaration..., it will always be true for adding to a List, but will be false
Sorting elements of a Collection
Sorting elements of a Collection       This section gives you the best illustration for sorting... with elements are assigned to the List (Collection) and then all the elements
Set Interface
Set Interface       The Set interface extends the Collection interface.... It permits a single element to be null. The Set interface contains only methods
Sorting in Java
Sorting in Java  Sorting in Java
Sorting String arrays in java - Java Beginners
Sorting String arrays in java  I have to make an interface... and make appropriate calls to interface to store and sort the arrays. I do not think that my sorting thusfar is correct. Can anyone help? Please help
is set interface synchronize by default???????
is set interface synchronize by default???????  is set interface synchronize by default??????? an whether list is syncrhronized by default
List iterator java example
Java List Iterator is an interface in the collection framework. List is an interface. Its all elements can be traversed by the Iterator. Java List Iterator has methods hasNext() and next() for traversing . Java List Iterator
Class or Interface
the methods defined in the List interface, it would be better to do the following... any methods that aren't in the List interface. The advantage... of many externally defined List data structures which implement the List interface
List in J2ME
List in J2ME       Exclusive List MIDlet Example This example illustrates how to create a Exclusive List. The Exclusive List is used to select only one list element at a time
group by sorting
group by sorting  group by sorting of data in SQL
interface - Java Beginners
interface  I need the complete program for Design of java interface for Stack ADT and implement the same using array and linked list in java. Kindly send it as soon as possible. SOme of your solutions are not accessible
interface
interface   what is the use of marking interface
list - Java Interview Questions
) method of Interface List public boolean contains(Object o) Returns...list  Hi all Naturally in java a list will allow duplicates, but if i want the list which shouldn't allow duplicates then what should be the logic
interface.
interface.  Write short note on interface.   Please visit the following link: Java Interface
interface
interface  will the interface implements a interface   Hi Friend, No. Interface can extends another interface but cannot implements it, because interface will not contain the implementation. Thanks
Sorting Arrays
computer science topic it sorting, putting a collection of data in some order... sorted based on a key. Sorting Arrays with Arrays.sort(...) The java.util.Arrays class contains a number of static methods for sorting arrays, both arrays
INTERFACE
INTERFACE  how interface support multiple inheritance in java
interface
interface   Hi I have interface in that interface 3 methods are there , after some days client said that,i want to add one more method in that interface ,so how can add 4 method so that the implemented class did not affect
Sorting data in a jsp using a servlet while implementing comparable - JSP-Servlet
Sorting data in a jsp using a servlet while implementing comparable  ... it for sorting. Bellow is its code: /* * To change this template, choose Tools... = service.getUniversalBooksWSPort(); // TODO process result here //Get the list of books
interface
interface  can we extend interface?   Hi Friend, Yes an interface can be extended by other interface like using extends keyword interface A{ } interface B extends A{ } For Example: interface IntefaceA { void
interface
interface  what the use of interface?   An interface is one... variables.Any class can implement(inherit)the interface and make use... is achieved by using the interface (by implementing more than one interface at a time
interface
interface  What is marker interface ?? what is its use in java programming?? is this us in programming ??Explain is implementation with code
interface
interface  develop a library interface which has drawbook(),returnbook()(with fine),checkstatus() and reservebook() methods.all the methods tagged with public
interface
interface  develop a library interface which has drawbook(),returnbook()(with fine),checkstatus() and reservebook() methods.all the methods tagged with public
Interface
for Interface in java? and want to know why they used interface instead of multiple inheritance? Thanks in advance   An interface is one which has abstract... implement(inherit)the interface and make use of the methods(functions

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.