Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Zoho Docs
Google Docs
Each Attachment size should not exceed 1MB.
Max no of attachments : 0
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
New to this Portal?
Click on Join Now to Sign Up
Join Now
Help
Feedback
Sign In
Processing Forum
Recent Topics
All Forums
Search All
Tags
Author
Advanced Search
Search
New Topic
Move this topic
Forum :
Share your Work
Programming Questions
Core Library Questions
Contributed Library Questions
Android Processing
Processing with Other Languages
Integration and Hardware
Library and Tool Development
Events and Opportunities
General Discussion
Sub forum :
Move this topic
Cancel
Programming Questions
nathanlin..
How to change a specific character in a String
in
Programming Questions
•
11 months ago
Let's say I have String. We'll call it mystring.
String mystring = "Hello everyone, this is my String!";
How would I change a specific character in the String, say I wanted to change the comma to a period, or something like that, how would I do it?
1
Reply
Replies(1)
Chrisir
Re: How to change a specific character in a String
11 months ago
e.g.
https://forum.processing.org/topic/check-and-replace-certain-char#25080000001371625
also have a look at
http://processing.org/reference/String.html
there is stuff like indexOf and you can thus get the position of the comma and then with twice using substring go like
String newString = subStringFirstPart + "." + subStringSecondPart;
Greetings, Chrisir
Leave a comment on Chrisir's reply
Change topic type
Topic Type :
Discussions
Questions
No of days :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Change topic type
Cancel
Link this topic
Provide the permalink of a topic that is related to this topic
Permalink
Save
Close
Reply to nathanlink169's question
Top
Reply
{"z4290323":[25080000001655753],"z19582621":[25080000001656218]}
Statistics
1
Replies
355
Views
0
Followers
Tags
Cancel
string
char
Actions
Permalink
Related Posts
Chopped Off Text
"Badly formed character consta...
hue() returns unpredictable results
loadString
Using strings from text file as inp...