@@ -0,0 +1,931 @@
+package com.sunny.grokkingalgorithms.boot2019.toast;%0A%0Aimport java.util.Scanner;%0A%0Apublic class ReverseSentencesMyWay %7B%0A%0A    public static String reverseSentence(String line)%7B%0A        StringBuilder reversed = new StringBuilder();%0A        String%5B%5D splitted = line.split(%22%5C%5Cs+%22);%0A        int i = splitted.length - 1;%0A        int j = 0;%0A        int k  = 0;%0A        while(j %3C line.length())%7B%0A            if(!Character.isAlphabetic(line.charAt(j)))%7B%0A                reversed.append(line.charAt(j));%0A                j++;%0A            %7D else%7B%0A                reversed.append(splitted%5Bi%5D);%0A                i--;%0A                j = j + splitted%5Bk%5D.length();%0A                k++;%0A            %7D%0A        %7D%0A        return reversed.toString();%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner scanner = new Scanner(System.in);%0A        String line = scanner.nextLine();%0A        System.out.println(reverseSentence(line));%0A    %7D%0A%0A%7D%0A

Reverse sentence my way.