Sponsored White Papers, Webcasts, and Downloads
TechRepublic Resources
- Question on Sorted in java in LinkedList
- My question is why sort method in LinkedList can not sort String typ and integer typ in the same list. For example if we creat list of LinkedList with integer numbers and string names The codein the test class Iam using Java APILinkedList list = new LikedList;list.add(new Integer(1));list.add("AAAAA");list.add(new Integer(6));list.add("BBBBB");//then when...
- Tags: compareTo, INTEGER, Java, LinkedList, modi8_8@..., programming, Sorted
- Discussion threads 2004-11-21
Additional Resources
- Create custom class interfaces in .NET
- Implementing the interfaces that come with .NET allows you to deploy your classes with standardized functionality that other developers expect. In my previous article, I introduced class interfaces and compared them to abstract base classes. I also described the most important .NET interfaces and created a class that implements the...
- Tags: .NET, Harold Davis, Microsoft .NET, IComparable, Dinosaur
- Technical articles 2003-01-15
- Sort arrays easily and efficiently in .NET
- Sorting arrays is a common programming task, and the new utility interface in .NET makes it a breeze. The primary benefit of this technique is that you can decouple the sorting class from the contents of the array. To demonstrate, I’ll keep it simple and sort an array of strings...
- Tags: .NET, Microsoft development tools, Jonathan Lurie, Microsoft .NET, Array.Sort, IComparable, IComparer, Employee class
- Technical articles 2003-05-23
- How do I... Perform date/time arithmetic with Java's Calendar class?
- Java's Calendar class offers a set of methods for converting and manipulating temporal information. In addition to retrieving the current date and time, the Calendar class also provides an API for date arithmetic. The API takes care of the numerous minor adjustments that have to be made when adding and...
- Tags: Method, Java, Class, Calendar, Melonfire
- Blog posts 2007-08-15
- Utilize .NET 2.0's powerful List class in your next project
- Working with collections of identical objects presented some problems in the .NET Framework 1.x, but version 2.0 adds new features to simplify such tasks. The addition of generics support led to inclusion of new collections like the List class. Learn more about incorporating the List class into your next project....
- Tags: Microsoft .NET, Middleware, Tony Patton, .NET, Application servers, System.Collections.Generic namespace, generic, .NET Newsletter, Class, Collection, Object, Constructor, List, C#, Software Development, Software/Web Development, Enterprise Software, Software, Programming Languages
- Technical articles 2006-05-09
- Easily sort values with the .NET Array class's Sort method
- Tony Patton recently examined the basic functionality of .NET arrays; this week, he focuses on the Array class's Sort method, which simplifies sorting the contents of an array. He also explains how you can use other .NET features to institute custom sorting. In a previous column, I discussed...
- Tags: Microsoft .NET, Middleware, Tony Patton, .NET, Microsoft development tools, .NET Newsletter, Method, Array, Class, Interface, Person, Array Class, Sort, IComparable, IComparer, Listing C, Listing E, Listing F, .NET Array Class, Application Servers, Software Development, Software/Web Development, Enterprise Software, Software, Development Tools
- Technical articles 2006-11-14
- Transitioning into OOP: Manage elements more efficiently with the Java Collections Framework
- The Java Collections Framework adds a standardized API for representing groups of elements to the Core Java APIs. This introduction to OOP explores some of the Framework's features and demonstrates how you can use its sorting capabilities.In our previous article, "Transitioning into OOP: Abstract data types in Java," we talked...
- Tags: OOA/OOD/OOP, Jeff Hanson, SortedSet, comparator, Comparator, Collections Framework, Java Collections Framework, Java, object-oriented programming
- Technical articles 2002-02-12
- Creating data structures with the Java Collections Framework
- All but the most trivial computer programs employ some type of data structure. Java provides the most common data structures via the Java Collections Framework. The good news is that it can easily be used and extended.By Alexandre CalsavaraThe Java Platform provides the most commonly used data structures in the...
- Tags: Guest Contributor, Java, Java Platform, Collections Framework, data structure
- Technical articles 2002-05-06
- Take advantage of strongly typed collection classes in .NET
- The .NET Framework provides abstract classes you can use to create strongly typed collections for more efficient data management. We'll walk you through some code samples that show you how to better access the data layer.As readers of Builder.com know from Lamont Adams’ articles "Collective confusion: Using collections in .NET"...
- Tags: .NET, Middleware, Microsoft development tools, Databases, Daniel L. Fox, Microsoft .NET, collection class, Microsoft .NET Framework
- Technical articles 2002-10-25
- Jakarta Commons Lang project offers centralized utility functions
- Most developers have their own sets of frequently used utility functions, but they aren't properly organized or documented. The Commons Lang project's goal is to provide a uniform, tested, and documented library.Most developers have worked with a small set of utility functions, such as capitalize, stringToInt, or split. Often this...
- Tags: Programming languages, Henri Yandell, utility function
- Technical articles 2002-10-17
- << Previous
- page 1 of 1
- Next >>