Theprogrammersfirst
A technical portal. It contains well explained topics and articles.
Home
Tutorials
Java
Data Structure
Algorithm
Interview Questions
Ask Question
Discussion
About Us
2018-10-28
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
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment