subject

Run the following code to check how String class Methods work, discuss with tutor, if you need explanation of any method. Make changes and try different variations. String myString ="KOI is my University";
String s1= "KOI";
String s2= "koi";
String s3 = " Hello KOI ";
System. out. println("Char at index 2(third char): " + myString. charAt(2)); System. out. println("After Concat: "+ myString. concat("-Enjoy-")); System. out. println("Checking equals with case: " +s2.equals(s1)); System. out. println("Checking Length: "+ myString. length()); System. out. println("Replace function: "+ myString. replace("fun", "easy")); System. out. println("SubString of myString: "+ myString. substring(8)); System. out. println("SubString of myString: "+ myString. substring(8, 12)); System. out. println("Converting to lower case: "+ myString. toLowerCase()); System. out. println("Converting to upper case: "+ myString. toUpperCase()); System. out. println("Triming string: " + s3.trim()); System. out. println("searching s1 in myString: " + myString. contains(s1)); System. out. println("searching s2 in myString: " + myString. contains(s2));

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:20
Cengagenowv2 is a comprehensive online learning tool. using cengagenowv2, you may access all of the following except: 2. each time you log in, cengagenowv2 automatically performs a system check and informs you if your computer does not meet the cengagenowv2 system requirements. 3. which tab/page allows you to easily track your assignment scores, number of submissions, time spent, as well as the ability view assign
Answers: 3
question
Computers and Technology, 22.06.2019 18:30
The "instance" relationship shows that something is an object of a
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Given a link with a maximum transmission rate of 32.8 mbps. only two computers, x and y, wish to transmit starting at time t = 0 seconds. computer x sends filex (4 mib) and computer y sends filey (244 kib), both starting at time t = 0. statistical multiplexing is used, with details as follows packet payload size = 1000 bytes packet header size = 24 bytes (overhead) ignore processing and queueing delays assume partial packets (packets consisting of less than 1000 bytes of data) are padded so that they are the same size as full packets. assume continuous alternating-packet transmission. computer x gets the transmission medium first. at what time (t = ? ) would filey finish transmitting? give answer in milliseconds, without units, and round to one decimal places (e.g. for an answer of 0.013777 seconds you would enter "13.8" without the quotes)
Answers: 3
question
Computers and Technology, 23.06.2019 12:00
If you're using an existing powerpoint presentation that will receive new slides based on a word outline, select the a. slide that will appear after the new slides. b. first slide in the presentation. c. slide that will appear before the new slides. d. last slide in the presentation.
Answers: 2
You know the right answer?
Run the following code to check how String class Methods work, discuss with tutor, if you need expla...
Questions
question
French, 16.11.2019 07:31
question
Mathematics, 16.11.2019 07:31
Questions on the website: 13722360