I think this is a bit tougher then the last one I posted (which was quite simple). I think I'm missing something fundamental. This code runs, but when I run it and it prints out the contents of the list it shows that all items
in the list have the same value as the last item I added. I expect to see in the console:
[0] - aaa
[1] - bbb
[2] - ccc But instead I see [0] - ccc
[1] - ccc
[2] - ccc ------------------------------------------------------
import java.util.*;
public class Assignment1
{
public static class WordPair
{
String firstWord;
}
public static void main(String[] args)
{
WordPair tempWordPair = new WordPair();
ArrayList<WordPair> wordPairList = new ArrayList<WordPair>();
Have been using the latest and greatest eclipse helios for quite some time, but recently had to switch back to eclipse ganymede because the latest flash builder 4 was not compatible with helios. Although I did had ganymede on my system, which was stuffed with too many plugins including the old version of m2eclipse, I thought of starting with a fresh installation of eclipse ganymede with the latest version of m2ecilpse over it. But as soon as I entered the m2eclipse update site ULR: http://m2eclipse.sonatype.org/sites/m2e, it started to give “No repository found at http://m2eclipse.sonatype.org/sites/m2e” error.