Title: Sun Certified Java Programmer 310-065-Lesson 32-Generics and Collections (Working with arrays of three different types (Integer, Double, and String)-Part 12
Duration: 15 minutes
Summary: In this video, we continue our discussion on generics and collections. We will talk about the generic type T. This discussion is somewhat similar to the discussion we've had with the wild card. In here, we start by creating three separate methods that print on the screen arrays of three different types (Integer, Double, and String). Then, we removed those methods and replace them with a single method that operates on the generic type T. We pass as a parameter an array of T. We declare the method with before the return type. This method will be able to print the three arrays. Using these type of methods will simplify the application design and reduce code.
Methodology of the development of example: Good coding standard and simplified design to prepare for the Java programmer certification exam CX-310-065.
Technology Used: Java - Core Concepts.
Keywords: Class, Object, Integer, Double, ArrayList, String, T.












Post stats:









See the prices for this post in Mr.Bool Credits System below: