System.out.println(s1.substring(1, 6)); //substring (double parameter)(6-1) System.out.println(s1.trim()); //Trim removes spaces start of the string and end of the string but not middle of the string ...
Community driven content discussing all aspects of software development from DevOps to design patterns. Good programmers need to create code that efficiently solves problems, using various methods. A ...