here are the instructions
Write a program that determines the number of blank spaces in an input line. Read in the line into a string. Next use the charAt( ) method in a loop to access the characters one by one.

your main method is empty dude its very important to learn how methods work. here is your code with a call in your main method

Code:

public class Assign5_Roberts {

public static void main(String[] args){

space(" This is the main method where all the action happens when you are learning to program java");

}

// below is your second method for checking for spaces it is not linked to your main method in anyway
// to use this you need to call it in your main method e.g space(String in here)
// It is important to learn where methods start and finish and how to call them because its all methods in future
// its also useful to learn what public static void mean.