Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The porous of this assignment is to refresh you on structural programming you learn on COSSC1436. Type the following 4 programs separately, compile/run and submit
The porous of this assignment is to refresh you on structural programming you learn on COSSC1436. Type the following 4 programs separately, compile/run and submit your work, the screenshot of run time and the.java file for each program separately for each program. 1) string manipulation public class String Operations public static void main(String[] args) { String stringi = "Hello"; String string2 = "Caron"; String string3 = ""; //empty String or null string3 "How are you string2.concat(string); System.out.println("string3: "+ string3); //get length System.out.println("Length: "+ stringi. Length()); //get substring beginning with character e, up to, but not //including character 5 System.out.println("Sub: " + string3.substring(0,5)); //uppercase System.out.println("Upper: "+string3.toUpperCase()); } } Add the following lines to above program: string strl-"Hello this is a test"; String str2 -stri.substring(6);//the sub is this is a test System.out.println(stri); System.out.println(str2); String str3-"Hello \tt this is a test"; str2 -str3.substring(6); System.out.println (str2)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started