This project is outside of Codecademy, but I am stuck within this:
Write a program that asks the user to enter two Strings, and prints the number of times that the second String appears within the first StThis text will be blurredring. For example, if the first String is “banana” and the second is “an”, the program prints 2.
Below is my code so far
Summary
```
Summary
import java.util.Scanner;
Summary
/**
Summary
*
Summary
* @author ChrisVo
Summary
*/
Summary
public class Assignment4 {
Summary
/**
Summary
* @param args the command line arguments
Summary
*/
Summary
public static void main(String[] args) {
Summary
// TODO code application logic here
Summary
Summary
Scanner answer = new Scanner(System.in);
Summary
//Prompt the user to enter a string
Summary
System.out.println(“Enter a word:”);
Summary
String input = answer.nextLine();
Summary
//Ask the user to enter a second String
Summary
//look at index method of string
Summary
System.out.println(“Enter another word:”);
Summary
String input2nd = answer.nextLine();
Summary
```