This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
HELP
wrote ...
2021/6/4
HELP SUPER URGENT!!!
HELP
2021/6/4
#
How if there are 2 strings called s1 and s2. And if s2 is equal to ("hello") how do i make s1 = s2 (they both are hello).
Gbasire
2021/6/4
#
if you want to check if both string are the same, do this
if(s1.equals(s2)) { //do stuff }
if you want to check the value of s1 and change s2, do this
if(s2.equals("hello")) { s1 = s2; }
You need to login to post a reply.
X