Java Generic Plz Help
I have to write a following program....can any one suggest me how to start i am not use to with hava generics classes...
Write a generic class called Gennow that has one type parameter. It should contain contains three methods, first() and second(), and third(), that return one of the three items respectively. Include a main method in the class which creates a Gennow object with a String type. The object should be created with three strings: "abc", "def", "ghi". Use the first(), second(), and third() methods to get each string from the Gennow object and print it. cann't use array...
Have you tried anything? Are you making an effort on this? If so, start writing a program, then ask specific questions (ones that CAN be answered).
Or do you just want someone to write it for you? 'Cause if that's the case, I have a perfect solution:
vWorker.com: More capable, accountable and affordable. Guaranteed.
...rent-a-coders aren't free. ;)