for loop how to use method in loop

public class Formain { public static void main(String [] args ){ System.out.println(“10.000 at 2% interest =” + calculateInerest(10000.0,2.0)); System.out.println(“10.000 at 3% interest =” + calculateInerest(10000.0,3.0)); System.out.println(“10.000 at 4% interest =” + calculateInerest(10000.0,4.0)); System.out.println(“10.000 at 5%

Read more

java for loop

public class Formain { public static void main(String [] args ){ System.out.println(“10.000 at 2% interest =” + calculateInerest(10000.0,2.0)); System.out.println(“10.000 at 3% interest =” + calculateInerest(10000.0,3.0)); System.out.println(“10.000 at 4% interest =” + calculateInerest(10000.0,4.0)); System.out.println(“10.000 at 5%

Read more

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