String st1 = "123(234)345"; String st2 = st1.substring(st1.indexOf("(")+1,st1.indexOf(")")); st2=="234";