Sorting Router Interface in a list.

Ads

 
 
 

Share on Google+Share on Google+

Md Jamaluddin khan
Sorting Router Interface in a list.
1 Answer(s)      4 years and 3 months 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.

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


Ads









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
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
Advertisements
List interface
List interface  What is the List interface
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
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
Sorting  can any help me know which sorting algorithm java uses for sorting collection and arrays
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
sorting
sorting  write a program which sort by lastname if the string of list is "firstnamelastname" i)66aa,cckk,ddac
esign filter for wifi router
esign filter for wifi router  How can i make a filter for my wifi router to filter packets from specific ip or mac address
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
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
Sorting in Java
Sorting in Java  Sorting in Java
List In Java
structure is implemented in Java using List interface. List interface allows... into list. A list may contain the duplicate elements. The List interface provides... Of List Interface boolean add(E e) : This method adds the specified element
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<
group by sorting
group by sorting  group by sorting of data in SQL
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
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
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  how interface support multiple inheritance in java
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  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
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
Tutorials   
Java Spring Hibernate Struts Training java.lang.NoClassDefFoundError: org/apache/http/client/HttpClient How do I resolve this Java Class not found exception? httpclient java.lang.NoClassDefFoundError Apache Commons ioutils maven dependency Read/Convert an inputStream to a String What is the meaning of Java Platform? Why Java is a platform independent language? What is the benefits of learning Core Java? Which technology should I learn after Java? What is array in java with example? How to Convert ArrayList to Array? How to substring in Java? How to format number in Java? What is instance variable in Java? How to download MySQL JDBC driver? What is Calendar class in Java? Which is the best Java tutorials for beginners? How to rename a file in Java? How to delete file in Java code? How to get day from date in Java using Calendar? How to get day of week in Java? How to calculate Date Difference in Java? How to compare date in Java? How to declare array in Java? How to calculate average of array in Java? What is Array in Java? write a java program to find the summation of all the integers entered on command line Sum of two numbers using command line arguments in Java How to create and use Array in Java? How to pass command line arguments in Java? How to create Applet Hello World? Appending String efficiently in Java How to append String in Java? How to list even numbers between 1 and 100? How to add BigDecimal in Java? What is Abstraction In Java? Which is best Beginners Java Tutorial? What is java.util package? Create list from array in Java Filter collection in Java 8 What is the best way to filter a Java Collection? Easy way to transform Collection to Array? How to convert Collection to Array in Java? What are Basic Java Language Elements? Advanced Java Tutorials in 2017 Java brief history Best Reasons to learn Java Java Example Codes and Tutorials in 2017 How do I read a large file quickly in Java? Is learning Java worthwhile?

Ads

 
Advertisement null

Ads