Answers for "how to program in java code"

0

java code examples

public class Main {

  public static void main(String[] args) {
    int rows = 5;

    for (int i = 1; i <= rows; ++i) {
      for (int j = 1; j <= i; ++j) {
        System.out.print("* ");
      }
      System.out.println();
    }
  }
}
Posted by: Guest on January-04-2022
2

HOW TO CODE JAVA???????????

int[] marks = {50, 55, 60, 70, 80}; System.out.println(marks[0]);// Output: 50 System.out.println(marks[4]);// Output: 80
Posted by: Guest on February-13-2021

Code answers related to "how to program in java code"

Python Answers by Framework

Browse Popular Code Answers by Language