@AniketParulekar/

JavaBasicFileparse

Java

No description

fork
loading
Files
  • Main.java
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import java.util.*;

class Main {
  public static void main(String[] args) {
    System.out.println("Hello world!");
    System.out.println(getstring("Aniket"));
    prntpattern();
  }

  public static String getstring(String str1){
      String newstring = "Changed " + str1;
      return newstring;
  }

  public static void prntpattern(){
      for (int i = 1; i<=5; i++){
          for (int j=1 ; j<=i; j++){
              System.out.print("*");
          }
        System.out.println("");
      }
  }
}