Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package zadania.zad1;
- import java.util.function.Function;
- public class Main10 {
- public static void main(String[] args) {
- Function<String, String> rewerse = x -> {
- String fromBehind = "";
- for (int i = x.length() - 1; i >= 0; i--) {
- fromBehind += x.charAt(i);
- }
- System.out.println(fromBehind);
- return fromBehind;
- };
- rewerse.apply("alkoholik");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement