Sign in

Learn something new everyday.

Hi y’all! Today We’re going to take a look at one of the sorting algorithms — Bubble Sort.

[Bubble Sort]

Now let’s see how this bubble sort works!

Hi y’all! It’s another day to practice the StringTokenizer with me!

You can check my last post out above, and let’s get this started!

[Question 1] Man down!

Let’s say there is a game of the war. And this game records points with the “-”, “+” signs. When there is “-” in front of…

Hi guys! Welcome to another day of practicing Java with me. Like I said on the last post, I brought some practice questions of StringTokenizer, so if you miss the last posts check them out before!

[Question 1] Split the String “sample” with delimiters “#”, “/” and includes delimiters into tokens.

String sample = "A#whole/new#/World";

Hi guys! Today I’m going to talk more about the StringTokenizer and the while statement which is another loop. The first post about StringTokenizer is on below.

[while & hasMoreTokens()]

Last time I used countTokens() to count how many tokens are there in the StringTokenizer. …

StringTokenizer — One of the Java util package that breaks a String into tokens.

Hi y’all! Today I’m going to show you how to use the StringTokenizer. It’s very similar with one of the String method split(), but you might find StringTokenizer more convenient to use.


Unlike the split() method…

Hey guys! I know I told you that I’m going to bring some practice questions today, but I think it’d be better If I show you some more of the methods that you can use on the ArrayList.

Checkout my last post before we go!

(1) add() method 2

If we use the add()…

ArrayList — Re-sizable array that java.util package provides.

Hi y’all! Today we’re going to take a look at the ArrayList. You would remember arrays, there are one dimensional and two dimensional arrays.

Basically all of them(one, two dimensional arrays, ArrayList) have the same purpose, which is storing elements.


ArrayList can…

Hi guys! Today we’re going to practice the String methods that we’ve seen on the last posts. So before we go it’d be better to check them first.

Question 1. Get the word ‘school’ from the sample String, and store it in the answer String.

String sample = "I'm going to school tomorrow.";
String answer = "";

The answer is on below!

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.

Hi y’all! In one of my old post I was talking about three String methods charAt(), equals(), length().

Today I’ll talk about more of the String methods that we can use often. Let’s get this started then!

(1) startsWith()

This method returns true if the String starts with the parameter String, and…

Student Kim

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