Question: I want to remove frequent patterns from an arraylist. I tried this using hashset but output appears the same.This is the sample set of my arraylist which is residing on a file mytext.txt...How to remove the repeated sequences either before adding into file or after adding into file?

This is the content of my newlist......when i print the contents of newList the following output gets printed without repeated entries...But after writing to a file it shows repeated sequences

```
    HashSet<String> hash1 = new HashSet<String>();
    hash1.addAll(newList2);
    newList2.clear();
    newList2.addAll(hash1);

    System.out.println(hash1);

```

output

```
[arrested, snatching, chain, for, A, escaped, on, from, Friday, man]
[arrested, snatching, chain, for, A, escaped, on, from, Friday, man]
[arrested, snatching, chain, for, A, escaped, on, from, Friday, man]

```

Answer: 
Because `font-family: sans-serif;` is set, each browser set's their own standard font. This can ofcourse differ between different browsers.

In chrome, you can set the default fonts at chrome://settings/, under advanced settings.

In safari it is less easy, but I could find [this post](https://apple.stackexchange.com/questions/58014/safari-6-how-to-change-default-fonts).

---

In reaction to your edit, you should always define a font stack in CSS to ensure that the correct font is shown.

A font stack is a stack of fonts, used to define different fonts to be chosen. It looks as follows:
`font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;`

This defines Arial as the standard font. If however Arial is not found, Helvetica Neue is chosen. If that font is also not present, Helvetica get's set. In the very unlikely case that even Helvetica isn't present, the standard sans-serif font, set by the browser, is chosen.

For reference, you could check out [this website](http://cssfontstack.com/). It has a lot of standard font stacks you can use in your CSS.
Every browser makes it able to chose the fonts you want to be displayed
In chrome you have to go to the settings and click 'Show advanced settings' or something like that to find content display adjustments menu