Bookmark Topic Watch Topic
  • New Topic

Doubt  RSS feed

 
Sree Potluri
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Report post to moderator
public class Test {
//insert here
{
List<T> output = new LinkedList<T>();
for (T t:input)
output.add(0,t);
return output;
}
}

which can be inserted //insert here to compile and run without error
A. public static <T> List <T> backwards(List<T> input)
B. public static <T> List <T> backwards(List<? extends T> input)
C. public static <T> List <T> backwards(List<? super T> input)
D. public static <T> List <? extends T> backwards(List<T> input)
E. public static <T> List <? super T> backwards(List<T> input)
F. public static <? extends T> List <T> backwards(List<T> input)
G. public static <? super T> List <T> backwards(List<T> input)

Correct answer A, B, D, E

Help me understand this
 
Raju Champaklal
Ranch Hand
Posts: 521
  • Mark post as helpful
  • send pies
  • Report post to moderator
simple use public static void main(String args[]) method in your enum...and then print Winter.getInfo() on the console..or else Season.Winter.getInfo() from some other class
 
Raju Champaklal
Ranch Hand
Posts: 521
  • Mark post as helpful
  • send pies
  • Report post to moderator
how could you change your question....for a new question you should have started a new thread....
 
Jeevan Reddy
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Report post to moderator
Raju Champaklal wrote:how could you change your question....for a new question you should have started a new thread....


I didn't know the question was edited.
I was wondering about your reply. Trying to figure out , then I saw your next reply.
 
Devaka Cooray
Marshal
Posts: 5521
689
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Report post to moderator
Sree, please UseAMeaningfulSubjectLine when you ask a question. You may also have a look at this faq.
 
Sree Potluri
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Report post to moderator
Sorry for the confusion. But can you help me understand about this one.
 
Devaka Cooray
Marshal
Posts: 5521
689
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Report post to moderator
Sree Potluri wrote:Sorry for the confusion. But can you help me understand about this one.

Let's continue the discussion in your other topic.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!