Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems Analysis And Synthesis Bridging Computer Science And Information Technology

Authors: Barry Dwyer

1st Edition

0128054492, 9780128054499

More Books

Students also viewed these Databases questions