Looking for a Tutor Near You?

Post Learning Requirement »
x

Choose Country Code

x

Direction

x

Ask a Question

x

x
x
x
Hire a Tutor

String Manipulation In Java

Loading...

Published in: Java And J2EE
784 Views

Format and Description On String Manipulation.

Subhadeep B / Kolkata

2 years of teaching experience

Qualification: B.Tech/B.E. (TECHNO INDIA COLLEGE OF TECHNOLOGY - 2013)

Teaches: Mathematics, Biology, Physics, Science

Contact this Tutor
  1. contpareT0( egualslgnc; endsWith( a I -compare a2); a} .equa}slænore p-endsWith( b) Returns the position of the firs! occurrence of 'm• in the string "computed 2 C f he first occurrence of is lhc 2'*' Position Returns the position of string from nth. positsorj "prinie noer•• Output 8 (The next occurrence o m' in t)E-gTng from 5 .Pos1t10n is at 8th. location as 0 p- at (F. posrtjon ) . negative if al a2 zero if al=a2 Application"; a—Computer Application' Returns true. if al and a2 are equal arter ignoring cases of the string and fr2se, if they are unequal a 1='Computer Application" Application" • - a equalsIgnoreCase(a2): - Output : true 'Returns true if the string p containsAi' *Offix specified by String b. "COMPUTER IS FUN'• 'boolean x = p.endsWithqh) 'Result x = true 'Returns true if the string p staffs specified String b. "COMPUTER IS FUN'* b = "COMPUIER"; *boolean x p startsWitfi(b) Result x = true Conversion Cohversiom To cont. en from 60 : Writ {Fi.pzhlic class sum //Convers10n /hy Vijay Ku —T 7 = 16 018 1- char c • 00:27