---
title: "How to print array without using loop and recursion In java"  
description: "How to print array without using loop and recursion In java"  
author: "Anonymous User"  
published: 2015-12-04  
updated: 2015-12-04  
canonical: https://www.mindstick.com/forum/33683/how-to-print-array-without-using-loop-and-recursion-in-java  
category: "java"  
tags: ["java", "array"]  
reading_time: 1 minute  

---

# How to print array without using loop and recursion In java

In my [application](https://www.mindstick.com/articles/12824/calculator-application-in-android) there is need to [print](https://www.mindstick.com/blog/301752/types-of-3d-printing-technology) [values](https://www.mindstick.com/forum/327/sum-textbox-values) of [array](https://www.mindstick.com/articles/335/jagged-array-in-c-sharp-dot-net). I can not use any loop or [recursion](https://answers.mindstick.com/qa/111681/what-is-recursion-and-when-should-i-use-it) and want to print all values from [http response](https://www.mindstick.com/articles/1406/debugging-http-requests-and-http-response). There is any way to print [java](https://www.mindstick.com/articles/12214/web-development-company-in-india-laid-on-the-foundation-of-concrete-java-programming) array without using loop or recursion. For Example I have array int [] ={102,202,..12}. [now](https://yourviews.mindstick.com/view/81402/it-s-liberals-vs-progressives-in-us-politics-now) i want to print values as\
102,202 .. 12 . [Order](https://www.mindstick.com/articles/12276/how-timely-order-deliveries-can-improve-customer-experience) maintain is not necessary .

## Replies

### Reply by Anonymous User

**Method 1:**We can print array without using loop or recursion as\

```
  char [] crr = {'A','B','C','D','E','F'};  System.out.println(" Print Array ="+ Arrays.toString(crr));
```

\
Output: Print Array =[A, B, C, D, E, F] \
\
**Method 2:** Firstly we make arraylist from array and then print it .\

```
    String [] brr ={"HTML","PHP","JAVA","C"};    ArrayList<String> arr= new ArrayList<String>(Arrays.asList(brr));    System.out.println("ArrayList Is ="+arr);    
```


---

Original Source: https://www.mindstick.com/forum/33683/how-to-print-array-without-using-loop-and-recursion-in-java

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
