---
title: "How do I print my name (Simron) 1000 times in Java without looping?"  
description: "How do I print my name (Simron) 1000 times in Java without looping?"  
author: "simron shukla"  
published: 2018-03-11  
canonical: https://answers.mindstick.com/qa/39741/how-do-i-print-my-name-simron-1000-times-in-java-without-looping  
category: "programming"  
tags: ["java programming"]  
reading_time: 1 minute  

---

# How do I print my name (Simron) 1000 times in Java without looping?

How do I [print](https://www.mindstick.com/blog/301752/types-of-3d-printing-technology) my [name](https://answers.mindstick.com/qa/100691/name-a-famous-tennis-tournament-played-on-grass) (Simron) 1000 times in [Java](https://www.mindstick.com/articles/1702/introduction-to-java) without looping?

\

## Answers

### Answer by Arti Mishra

***JAVA Code Queries***\
Well, writing down the "**Simron**" a thousand times in JAVA without using Loops is not a big deal...So here you go with the related code that could solve your queries within seconds:\

```
public class PrintName {
 public static void main(String[] args) {
  printName();
 }   int nextNumber = 0;
 private static void printName() {
  if(nextNumber < 1000)
   {
   System.out.println("Simron");
   nextNumber++;
   printName();   //Note: calls printName() method again
   }
  else	 {
   System.exit(0);
   }
 }
 }
```

\
Hope this had been a help to you!


---

Original Source: https://answers.mindstick.com/qa/39741/how-do-i-print-my-name-simron-1000-times-in-java-without-looping

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
