Basic Hangman Java : I need to get the condition to follow whether the alphabet is  x y z and I can't get the logic of it . Any help would be appreciated before tomorrow .ASAP thank you ☺

package guessword;

import java.util.*;

public class Guessword

{       

  public static void main(String[] args) 

   {   char s[] = 

{'a','b','c','d','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};

      System.out.println("Guess The seven letter word\nPress Enter");
       Scanner scanner = new Scanner(System.in);
       scanner.nextLine();
       System.out.print("");
       for(int a=1;a<=7;a++)
       {
       System.out.println("Attempt "+a);
       scanner = new Scanner(System.in);
       String input = scanner.nextLine();
       System.out.println(Arrays.toString(s));       
           if(a=='a') 
               {System.out.println("- - - - - a -"); }
       else if(a=='g')
       {System.out.println("- - - g - - -");}
       else if(a=='m')
               {System.out.println("- - -  - - m");}
       else if(a=='o')
               {System.out.println("- - o  - - -");}
       else if(a=='p')
               {System.out.println("p - -  - - -");}
       else if(a=='r')
       {System.out.println("- r -  - - -");}
       else             {System.out.println("Give it another go!");}
           }
       }  
}  


This is how it is giving output:
Guess The seven letter word
Press Enter

Attempt 1
a
[a, b, c, d, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z]
Give it another go!
Attempt 2


and on this [a, b, c, d, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z] line I wish it did not print this . but the condition . any help?