This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Substring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Substring" Watch "Substring" New topic


jose santelices

Joined: Feb 02, 2010
Posts: 4
Hello guys i got this code

the problem is whenever i print the variables c,d,e, i get a " , " between each number, is there any way to take the " , " away? Ill really appreciate this help
marc weber

Joined: Aug 31, 2004
Posts: 11343

It looks like those commas are inserted at line 17, so if you don't want them at all, you could make your adjustment there.

Otherwise, if it's a question of removing specific characters from a String, the String class has methods for that.

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
jose santelices

Joined: Feb 02, 2010
Posts: 4
OMG you got to be kidding me I never realized that It was me!!!

I was adding the , omg

Thanks for letting me see my mistake
I agree. Here's the link:
subject: Substring
It's not a secret anymore!