Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) {
- go("cevad");
- }
- public static void go(String str){
- for (int i=str.length(); i>0; i--){
- System.out.println(str.substring(0,i));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement