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
1,102 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. Oriented f characters tnemory as scil codes. able m (ava ifferent Function rim ( ) equals ( length ' charAt( oncat ( string string Fonnat a.trim ( a.equals ' a.length a.charAt al .concat (n); I a. substring (n); a.substring (m,n); Retnoves all the white/blank spaces of the beginning and the end of tile string a. Ravncira a a.trim ( ); output Vidyalaya Checks tvs strings are eeaa, or not. — "Rajendra Vidyalaya' a2 "Rajendra Yidyala_va" al.equals (a2): Output . true Returns the length of character present in the string. I-mc..Lz, a.)ength Cutput å8 (including one- bhTTTk ) etarnts a character of the string nth. pc)Mt10n. as it stalls countinc fronn 0th .position computer" a.charAt (5); C (the character •t' Output 5th.position because the characte- is ed positioni Concatenate; ( aédsl •and strings. Rajendra" al = a2 = "Vidyalaya"; al. concal(a2); Output : Rajendra Vidyalaya Returns substring starting from nth. character of the string a. 'Sundegpcuuding." a a. substring (5); standing (returns from Output character of the string countinu substring. Returnh characte: '!eaving fit-st character the stHno 2018-1-16 00:2- a.substri