Whats wrong in this program pls tell.
import java.util.*;
class arrays
{
me
public static void main(String argsti)
{
je
PO
int count=0;
String str[]=new String[10];
Scanner sc=new Scanner(System.in);
for(int x=0; x<=9;x++);
{
System.out.println(" enter a name");
str[x]=sc.nextLine();
if(str[x].charAt(0)=='a');
{
System.out.println("name="+str[x]);
count++;
}
}
System.out.println("number of names="+count);
Answers
Answered by
1
Answer:
i dont knowjjbehhebeushwishshhshsjshe
Similar questions