Hi to all I'am trying to run this program for my school progect but I keep receiving the same answer when I compile ')' expected. on the highlighted line can anyone help me thanks to all.
/**
* Write a description of class Records here.
*
* @author (Ryan MIfsud)
* @version (version 1)
*/
public class Records
{
public static void main (String Args []){
String Student_Name1;
String Student_surname 1;
String Student_ID1;
String Student_group1;
System.out.prin tln ("Enter name ");
int name = Keyboard.readIn t();
char grade;
grade = '_';
if ( name > Ryan,Robert,Vic tor,Jim,Sammy,L eo,Glen,Kyle || name < Kurt) System.out.prin tln ("name is not included");
else
if (name >= Ryan,Robert,Vic tor,Jim,Sammy,L eo,Glen,Kyle && name <= Kurt )
grade = 'name included';
System.out.prin tln ( "Enter student's name" );
Student_Name1 = Keyboard.readSt ring();
System.out.prin tln ( "Enter student's surname" );
Student_surname 1 = Keyboard.readSt ring();
System.out.prin tln( "Enter student's ID" );
Student_ID1 = Keyboard.readSt ring();
System.out.prin tln( "Enter student's group" );
Student_group1 = Keyboard.readSt ring();
System.out.prin tln ( Student_Name1 + Student_surname 1 + Student_ID1 + Student_group1 );
System.out.prin tln ("End by entering -1");
int counter = -1;
}
}
/**
* Write a description of class Records here.
*
* @author (Ryan MIfsud)
* @version (version 1)
*/
public class Records
{
public static void main (String Args []){
String Student_Name1;
String Student_surname 1;
String Student_ID1;
String Student_group1;
System.out.prin tln ("Enter name ");
int name = Keyboard.readIn t();
char grade;
grade = '_';
if ( name > Ryan,Robert,Vic tor,Jim,Sammy,L eo,Glen,Kyle || name < Kurt) System.out.prin tln ("name is not included");
else
if (name >= Ryan,Robert,Vic tor,Jim,Sammy,L eo,Glen,Kyle && name <= Kurt )
grade = 'name included';
System.out.prin tln ( "Enter student's name" );
Student_Name1 = Keyboard.readSt ring();
System.out.prin tln ( "Enter student's surname" );
Student_surname 1 = Keyboard.readSt ring();
System.out.prin tln( "Enter student's ID" );
Student_ID1 = Keyboard.readSt ring();
System.out.prin tln( "Enter student's group" );
Student_group1 = Keyboard.readSt ring();
System.out.prin tln ( Student_Name1 + Student_surname 1 + Student_ID1 + Student_group1 );
System.out.prin tln ("End by entering -1");
int counter = -1;
}
}
Comment