java switch

public class Main { public static void main(String[] args){ int switchValue = 2; switch(switchValue){ case 1: System.out.println(“values was 1”); break; case 2: System.out.println(“values was 2”); break; default: System.out.println(“value was nither 1 or 2”); break; }

Read more

java expression

java programming has 50 reserved words. like different words like if, if-else, while, case etc . it is used in different programming language. List of keyword in java. https://en.wikipedia.org/wiki/List_of_Java_keywords   *——–*————————**********——————-***********———– int score = 100;    

Read more