You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
have access to post topics
communicate privately with other members (PM)
not see advertisements between posts
have the possibility to earn one of our surprises if you are an active member
access many other special features that will be introduced later.
For Example:
I got a string with value "CatIsEatingDinner".
I want to cut off the first 3 symbols and the last 6 so the remaining string would be "IsEating".
How do I do that? I have searched the whole www for this...
I'm that far:
public String removeCharAt(String s, int pos) {
return s.substring(0,pos)+s.substring(pos+1);
}
How do I make it to cut off the first 11 characters of the string?
For Example:
I got a string with value "CatIsEatingDinner".
I want to cut off the first 3 symbols and the last 6 so the remaining string would be "IsEating".
How do I do that? I have searched the whole www for this...
It's much easy to get a subString fro the original string. But in that case, the length of the cutting parts should be fix, at the time.
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
I'm that far:
public String removeCharAt(String s, int pos) {
return s.substring(0,pos)+s.substring(pos+1);
}
How do I make it to cut off the first 11 characters of the string?
What is the meaning of 11 characters, it's another requirement?
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.