# Introduction In this challenge, we will complete the functionality of counting the occurrences of a substring in a string. The goal is to write a program that allows the user to enter a string and a substring separately, and outputs the number of times the substring appears. The code should be written in a source file named `StrCount.java` in the `~/project/` directory, as specified in the challenge preparation.
Click the virtual machine below to start practicing