Check out example codes for "google translate english to bengali". It will help you in understanding the concepts better.

Code Example 1

Scanner sc = new Scanner(System.in);
System.out.println("Your here to cheat on a test right?");
String answer = sc.nextLine();
if(answer.toLowerCase().equals("yes")){
	System.out.println("Me too, me too.");
}else if(answer.toLowerCase().equals("no")){
	System.out.println("Wow, such a suprise.");
}

Learn ReactJs, React Native from akashmittal.com