Thursday, 1 August 2019

Print your name 10 k time with out for loop

  1. String name = "kranthi";
  2. String str = "X";
  3. str = str.replaceAll("X", "XXXXXXXXXX");
  4. str = str.replaceAll("X", "XXXXXXXXXX");
  5. str = str.replaceAll("X", "XXXXXXXXXX");
  6. str = str.replaceAll("X", name + "\n");
  7. System.out.println(str);

or


@Test(invocationcount=10)
public void main(){
SYstem.out.println("hello")
}