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 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 Tutorials/Questions & Answers:
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
List interface
List interface  What is the List interface
Advertisements
List interface
List interface  Give me some of the real time examples that can be developed based on List and its implemented classes
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
sorting   write a program to arrange sorting in rows,column and diagonal
Sorting
Sorting  can any help me know which sorting algorithm java uses for sorting collection and arrays
Introduction to List and Queue Interface
Introduction to List and Queue Interface        List Interface : The List interface extends the Collection interface to define
Router
Router  hii, What is the router ?   hello,ADS_TO_REPLACE_1 Router is a layer 3 device. it route the packet from one LAN to different LAN. For avoid the broadcast we use router
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
Version of com.iih5>router-client dependency
List of Version of com.iih5>router-client dependency
sorting
sorting  write a program which sort by lastname if the string of list is "firstnamelastname" i)66aa,cckk,ddac
Version of com.bradleydwyer>springmvc-router-ide dependency
List of Version of com.bradleydwyer>springmvc-router-ide dependency
Sorting in Java
Sorting in Java  Sorting in Java
interface
interface   what is the use of marking interface
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
group by sorting
group by sorting  group by sorting of data in SQL
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
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  develop a library interface which has drawbook(),returnbook()(with fine),checkstatus() and reservebook() methods.all the methods tagged with public
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
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
interface
interface  why do we need interface in java..if it`s usefull for to obtain multiple inheritance in the sense how it gonna be achieved...and i can...)...the y we need interface...THis is question often i heard from my developer
Interface
Interface  I need to implement the interface without overriding its method and also don't use abstract class for this. How to do
interface
interface  What is the exact use of interface in real time scenario? some people says that interface provides multiple inheritance. Is it true...; Through interface, we can achieve the multiple inheritance. Java does
Interface
Interface  1.Create an interface names ShapeInterface that has two... class a.Rectangle that uses the interface b.Circle that uses the interface and abstract class   interface ShapeInterface{ int l=0,b=0; public
Interface
Interface  1.Create an interface names ShapeInterface that has two... class a.Rectangle that uses the interface b.Circle that uses the interface and abstract class   interface ShapeInterface{ int l=0,b=0; public
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<
Interface
Interface  Declare an Interface called property containting a method compute price to compute &return the price.The inerface is to be implemented by follwaing two class (1)Bungalow&(2)Flat both the lasses have following
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
Sorting Array List in Java
Sorting Array List in Java In this example you will learn about sorting array list in java using an example. By default array list are sorted as the element... List Interface. ArrayList are created with the initial size and exceed when
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
linear sorting
linear sorting  what is linear sorting? can any send me an example   Hi Friend, Try this: import java.util.*; class ArraySort{ public...("After Sorting: "); for(int i=0;i<arr.length;i++){ System.out.println
sorting and storing data
sorting and storing data   sorting and storing data in UITableView
Sorting Program
Sorting Program  To sort 10items in alphabetical order   Arrays.sort(name of ur array)   import java.util.*; class ArrayExample{ public static void main(String[] args) { String array[]=new
Java sorting
sorting mechanism. say about Collections.Sort() & Arrays.Sort() that uses
Version of com.mydaco>mydaco-interface dependency
List of Version of com.mydaco>mydaco-interface dependency
Version of com.novocode>junit-interface dependency
List of Version of com.novocode>junit-interface dependency
sorting
sorting
Sorting and Searching
Sorting and Searching  Hi i would really be thankful if someone could help me with this A program is required to ask users to rate the Java programming language using a number in the range 0 - 10. The data input is ended
Bubble Sorting in Java
Bubble Sorting in Java  Hi, What is Bubble Sorting? Guide me where to learn Bubble Sorting in Java? Thanks   Hi, Check the tutorial at Bubble Sorting in Java. Thanks
Sorting the array
Sorting the array  Implement a program to process votes for 5 candidates in a talent contest. The program should use a String array to hold the names of the 5 candidates and an integer array to record the number of votes for each
ModuleNotFoundError: No module named 'router'
ModuleNotFoundError: No module named 'router'  Hi, My Python... 'router' How to remove the ModuleNotFoundError: No module named 'router'... to install padas library. You can install router python with following command
ModuleNotFoundError: No module named 'sorting'
ModuleNotFoundError: No module named 'sorting'  Hi, My Python... 'sorting' How to remove the ModuleNotFoundError: No module named 'sorting... to install padas library. You can install sorting python with following command
number sorting
number sorting  program to sort a list of numbers in descending order... input=new Scanner(System.in); System.out.println("Enter List Elements: "); ArrayList<Integer> list=new ArrayList<Integer>

Ads