Hi,
I wrote the following Java Program. When I enter Arabic Course name, it displays non Arabic characters. Can you help me to read and write Arabic Character.
Thanks.
package p91;
import java.util.Scanner;
class GradeBook
{
public void displayMessage(String courseName)
{
System.out.printf("Wellcome to the Grade Book Dr. Sherif! for \n%s!\n", courseName);
}
}
/**
*
* @author
*/
class P91 {
/**
* @param args the command line arguments
*/
public static void main(String[] args)
{
// TODO code application logic here
Scanner input = new Scanner(System.in);
GradeBook myGradeBook = new GradeBook();
System.out.println("Please Enter the course name: ");
String nameOfCourse = input.nextLine();
System.out.println();
myGradeBook.displayMessage(nameOfCourse);
}
}