Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Point_5;
- public class Frame_10 {
- public static void main(String[] args) {
- String s = "Education is the most powerful weapon which you can use to change the world";
- String t = "An inwestment in knowledge pays the best interest";
- String part1 = s.substring(52,56);
- String part2 = t.substring(17,27);
- String part3 = s.substring(56);
- System.out.println(part1 + part2 + part3);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement