tylercapozzoli
03.12.2020 •
Computers and Technology
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));
Solved
Show answers
More tips
- C Computers and Internet What to Do If Your ICQ Gets Hacked?...
- L Leisure and Entertainment How to Land on the Moon: Your Comprehensive Guide...
- T Travel and tourism How to Use a Compass: A Beginner s Guide...
- C Computers and Internet Porn Banner: What It Is and How to Get Rid Of It?...
- C Computers and Internet Отправляем смс через интернет: легко и просто...
- L Leisure and Entertainment The Best Film of 2010: A Look Back at the Academy Awards...
- H Health and Medicine Simple and Effective: How to Get Rid of Cracked Heels...
- O Other How to Choose the Best Answer to Your Question on The Grand Question ?...
- L Leisure and Entertainment History of International Women s Day: When Did the Celebration of March 8th Begin?...
Answers on questions: Computers and Technology
- C Computers and Technology Differentiate between conceptual database design,logical database design adn physical database design in a tabularmanner....
- C Computers and Technology Determining how much budget eachdepartment should get is best suitable for solutionby: heuristicprogramming. linearprogramming. decisiontree. decisiontable. none ofthese....
- C Computers and Technology Develop an equation for the end-to-end delay along a communicationspath of n routers.the only constant that you may assume is thespeed of light in the given transmission...
- C Computers and Technology Discuss stable vs. unstable algorithm. be nice and clear inyour explanation...
- C Computers and Technology Differentiate hardware andsoftware interrupts?...
- C Computers and Technology Discuss only two ways inwhich the approach of fiber channel and atm lans are similar...
- C Computers and Technology Develop a win32application that · it displays the string welcome to win32programming using gdi calls. · creates a window having two edit controls and a button as itschild...
- C Computers and Technology Develop a win32application that · it displays the string welcome to virtualuniversity of pakistan using gdi calls. · creates a window having two edit controls and a...
- C Computers and Technology Design a sliding window protocol that allows transmission of upto eight packets before an acknowledgement arrives. to ensure thereceiver understands packets that arrive...
- C Computers and Technology Design by contract considers the software system to be a setof: a.clients and servers b.modules c.communicatingcomponents d.inputs,processes,and outputs...
Ответ:
what the hell is this ❤️❤️
Ответ:
nope
Explanation:
so did u come here to date or do what