Buzz Code
Published in

Buzz Code

Java 8 | String Method 3

Following from the last time, let’s see what kind of methods we can use on the String.

(1) trim()

This method removes the spaces in the beginning and the end of the String. It doesn’t need parameter.

(2) concat()

It puts two String into one.

(3) replaceFirst()

It’s similar with the replace() method, but it only changes the first letters that are same with the String parameter.

(4) equalsIgnoreCase()

This method is same with the equals() method, but

(5) isEmpty()

This method returns true if the String’s length is 0.

That’s all for today guys, let’s practice the String methods next time! Thank you for reading my post, see ya!

--

--

--

Happy coding!

Recommended from Medium

What Is A Concurrent Session License? (And Why It May Be Best For You)

BI Software With Concurrent Licenses - DashboardFox

It’s the World’s First Application Management Model, and It’s Open-Source!

This blog is to share about my review and learning outcomes from the recent webinar organized by…

Antminer Z9 Mini Zcash Setup Guide

What is S.L.A.M. Tracking

5–1 [Modeling] Variations of Modeling Methods

The New Developer’s Guide to Open Source

cronjob to future at 42. tweet.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Student Kim

Student Kim

Learn something new everyday.

More from Medium

Java Lambda Expressions

Java Predicate Interface

Conversion Between Array and ArrayList in Java

Assertions In Java