Question: Is it possible to create the following static void method in Java?

```
public static void reverse(LinkedList<String> linkedlist)

{

//Code would go here...

}

```

As I understand it, since Java is pass-by-value this isn't possible, correct?

Answer: 
Try this

```
$("input:checkbox:checked").each(function(index,value){
          alert($(this).parents('td').index());  
  }); 

```

<http://jsfiddle.net/cuNE6/9/>
This is probably what you are looking for. SInce you are wrapping your check boxes in td's, why not find the index of td

[[Demo]](http://jsfiddle.net/xgS9P/)

```
function notify() {

    $("input[type = 'checkbox']:checked").each(function () {
        alert($(this).parents('td').index());
    });
}

```