Description:
Write a function that takes a string as input and returns the string reversed.
Solution:
学一下用法~~~
public class Solution {
public String reverseString(String s) {
return new StringBuilder(s).reverse().toString();
}
}
Description:
Write a function that takes a string as input and returns the string reversed.
Solution:
学一下用法~~~
public class Solution {
public String reverseString(String s) {
return new StringBuilder(s).reverse().toString();
}
}