L
lemnfoon
Hi i need to compare a string that has " at the front and the back.
how do i compare it ?
Thanks
how do i compare it ?
Thanks
Hi i need to compare a string that has " at the front and the back.
how do i compare it ?
.equals works fin on String's even with double quotes in them.
Are you asking how to get double quotes in a literal String ?
if(s.equals("\"foobar\"")) {
Arne
.equals works fin on String's even with double quotes in them.Are you asking how to get double quotes in a literal String ?if(s.equals("\"foobar\"")) {Arne
OK. thanks
Another question,
how do i split a string using "/"?
for examplewww.yahoo.com/abc
i wan to split intowww.yahoo.comand abc.
tried this but cannot work ?
String[] subStringAdd = str.split("\\/");
Hi i need to compare a string that has " at the front and the back.
how do i compare it ?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.