quick java question, how to make code silent : <p>I have to run this code against a tester and it needs to be silent(if that makes sense) since is going against a lot of data if it printed everything my computer would crash.</p>

<p>I have no idea how to make it return silent values.</p>

<pre><code>public static void uniqueCharacters(String test){
    String temp = "";
    for (int i = 0; i &lt; test.length(); i++){
        char current = test.charAt(i);
        if (temp.indexOf(current) &lt; 0){
            temp = temp + current;
        } else {
            temp = temp.replace(String.valueOf(current), "");
        }
    }

    System.out.println(temp + " ");

}

//// here's the tester I'm using 

@Test
    public void testUniqueCharacters() {
        Random rng = new Random(SEED);
        CRC32 check = new CRC32(); 
        for(int i = 0; i &lt; RUNS; i++) {
            int len = rng.nextInt(100) + (2 &lt;&lt; rng.nextInt(5));
            String s = buildString(rng, len);
            String res = P2J2.uniqueCharacters(s);
            check.update(res.getBytes());
        }    
        assertEquals(3756363171L, check.getValue());
    }
</code></pre>
