I can't find out why my code is returning 0, could someone please help?
package tic.tac.toe; import java.util.Scanner; /** * * @author 25688 */ public class TicTacToe { /** * @param args the command line arguments */ public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); System.out.println("Average place of a word in the alphabet, enter a string in all caps and no numbers."); String str; str = keyboard.next(); double convo[]; String Alphabet = "0ABCDEFGHIJKLMNOPQRSTUVWXYZ"; int Sentlength = str.length(); int Counter = 0; convo = new double[Sentlength]; for(char Letter; Counter >= Sentlength; Counter++ ){ Letter = str.charAt(Counter); convo[Counter] = Alphabet.indexOf(Letter); } double temp = 0; for(int counter = 0; counter >= Sentlength; counter++){ temp = temp + convo[counter]; } double Result; Result = temp / Sentlength; System.out.println("Average alphabet placement of sentence is " + Result); } }