Computers and Technology
Computers and Technology, 03.12.2020 05:50, igtguith

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));

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:30, hope564
Dave has to create animations for a game. which tool can dave use?
Answers: 3
image
Computers and Technology, 23.06.2019 18:00, larry5007
Freya realizes she does not have enough in her bank account to use the debit card. she decides to use a credit card instead. which questions should freya answer before using a credit card? check all that apply. can i pay at least the minimum payment each month? can i make payments on time and avoid late fees? will i have to take out a loan? how much in finance charges can i afford to pay? should i talk to a consumer credit counseling service?
Answers: 1
image
Computers and Technology, 23.06.2019 23:30, jamalchris9353
Worth 50 points answer them bc i am not sure if i am wrong
Answers: 1
image
Computers and Technology, 24.06.2019 08:30, 5theth
Intellectual property rights are exclusive rights that protect both the created and the creation. ipr offers exclusively what benefits to the person or people covered by it
Answers: 3
Do you know the correct answer?
Run the following code to check how String class Methods work, discuss with tutor, if you need expla...

Questions in other subjects:

Konu
History, 11.06.2021 05:00
Konu
Business, 11.06.2021 05:00