Hai Everyone
Good Morning
First thing first. I am new to this Forum.
So my regards to you all.
I am new to JAVA. I am working on Collections.
I have used the following code using LINKED LIST:
public class ListGame { //public LinkedList<Object> llist = new LinkedList(); public LinkedList<String> llist = new LinkedList(); public LinkedList linklst = new LinkedList(); public static void main(String[] arg) { ListGame sample = new ListGame(); sample.llist.add("Saiarm"); sample.llist.add(new String("10")); //Collection T = new Collection<E extends String>; //sample.llist.addAll System.out.println("List Contains "+sample.llist); Collections.sort(sample.llist); System.out.println("List After Sorting "+sample.llist); }
Here I used the Collections.sort function.
So I was stuck with this particular class called Collections.
So what is the relation ship between Collection class and Linked List.
And I would be happy to learn about coding conventions (like naming convent of variables,functions etc as per industry standards).
Please help me in learning them.
Thank you
Have a nice day
With regards
Mani