Q:

For loop runs only once

I am trying a for loop piece of code, where the user inputs the number of words he will write and then afterwards the words itself, and at the end it should check for specific requirements (words that sstart with K increase the count value and also the last word that started with K will get registered).  However for some reason unknown to me, it just wont loop, no matter the input it just prints out everything on the code. 
package Others;
import java.util.*; 
public class StartsWithString 
{
    public static void main(String[]args)
    {
        Scanner sc = new Scanner(System.in);
        int wordNumber = 0;
        String words = "";
        int wordCount = 0;
        String lastWord = "";

        System.out.println("How many words are you going to write?: "); 
        wordNumber = sc.nextInt();

        System.out.println("Write the desired words: ");
        for(int i = 0; i < wordNumber; i++);
        {
            words = sc.nextLine();

            if(words.startsWith("K"))
            {
                wordCount++;
                lastWord = words;
            }
        }

        System.out.println("From a total of " + numriFjaleve + " words typed,);
        System.out.println(wordCount + " started with the letter K.");
        System.out.println("The last word typed which began with the letter K was: " + lastWord);
    }
}

A:

for(int i = 0; i < wordNumber; i++);

You have a semicolon at the end of your loop definition.  So your loop isn't actually a loop.  It's a standalone code block which runs once.  Remove the semicolon.