Computer Science, asked by Helpme999, 1 year ago

☆ CONTENT QUALITY ANSWER REQUIRED ☆

Question 》What is trim ()? in java

#No Spamming

No one line answers required; Only Answer if you know the topic clearly; No Copied answer. 

☆ CONTENT Quality Answers Required ☆

Answers

Answered by Priyanka429
2
Heya!

Here is your answer -

__________________________
In Java trim () method returns a copy of the invoking string from such any leading and trailing whitespace has been removed.

Its general formula is :

String s = " Hello Everyone ".trim();

This puts tge string "Hello Everyone" into s.

You can use this nethid when you process user commands.

_________________________

I hope it helps!

Priyanka429 here ☺
Answered by MsPRENCY
2
Bonjour!!

here is your answer ⤵
___________________
_______

IN Java, TRIM is the method of checking codes values that can be done before the string as well as after the string.

It is used to remove the spaces and the returns the omitted string.

● It is used to lead and to trail spaces.

● The uncod value of space character is \u0020.
___________
_________________________

HOPE IT HELPS YOU MATE! ✌ ✌


#THANKS

....@PRENCY

Priyanka429: im in 10
Priyanka429: u?
Priyanka429: ooh
Priyanka429: kk
Priyanka429: bye
Priyanka429: thx for talking
Similar questions