Reverse string method

后端 未结 6 1620
暗喜
暗喜 2021-01-20 00:25

I am trying to solve the following problem but how do write the method that accepts String as an argument?

Write a method named printReverse

6条回答
  •  孤街浪徒
    2021-01-20 00:42

    Something like this:

    public class StringUtils {
        public static String reverse(String forward) {
            String result = "";
            // Put your code here
            return result;
        }
    }
    

提交回复
热议问题