i have here a pure java code, this one gives me an output of "Special Characters are: java.util.regex.Matcher[pattern=[\p{Punct}&&[^_]]+ region=0,8 lastmatch=&&=+-]" as i compile & run, but i want only to have an output of "Special Characters are: &&=+-" based on my given value. and also the same with strings as "strings are: sam" but dont know how to do this, pls help... i used netbeans idei have here a pure java code, this one gives me