. . . . . . . . and . . . . . . . . methods are used to align characters in a String.

PadLeft, PadRight
Left, Right
LeftAlign, RightAlign
AlignLeft, AlignRight

The correct answer is: A. PadLeft, PadRight

The PadLeft and PadRight methods are used to align characters in a String. The PadLeft method adds spaces to the left of the string, while the

48.6-11.4 42.9-11.4 132.3-11.4 132.3s0 89.4 11.4 132.3c6.3 23.7 24.8 41.5 48.3 47.8C117.2 448 288 448 288 448s170.8 0 213.4-11.5c23.5-6.3 42-24.2 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zm-317.5 213.5V175.2l142.7 81.2-142.7 81.2z"/> Subscribe on YouTube
PadRight method adds spaces to the right of the string.

The Left and Right methods are used to extract a substring from a string, starting at the beginning or end of the string, respectively.

The LeftAlign and RightAlign methods are not methods in Java.

Exit mobile version