Java 11 : repeat method example

repeat method accept a integer parameter and repeat variable that many time.

var test = " hello ";
System.out.println(test.repear(3));

Output:
hello   hello   hello

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation