• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Need help with JAVA

Xylitol

Diamond Member
public String encrypt(String word)
{
int pos = word.length() / 2;
if(pos >= 1)
{
word = encrypt(word.substring(pos)) +
encrypt(word.substring(0, pos);
}
return word;
}
What is the contents of the string returned by encrypt("SECRET")?
 
it just returns <h> when there is "http://" and "not found" when the substring is not found in the string.
 
Back
Top