Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

deep to string issues

Posted on 2012-09-11
2
Medium Priority
?
604 Views
Last Modified: 2012-09-11
I am trying to read two dimentional string array as given in this link.

http://stackoverflow.com/questions/2397535/print-two-dimensional-array-of-strings-as-string

I supposed to get output like

String[][] aastr = {{"hello", "world"},{"Goodbye", "planet"}};
System.out.println(Arrays.deepToString(aastr)); Gives

  [[hello, world], [Goodbye, planet]]


but i am seeing weird stuff like
 [Ljava.lang.String;@83cc67

How can I see the values properly.Any ideas, suggestions, sample code, links, source code highly appreciated. Thanks in advance
0
Comment
Question by:gudii9
  • 2
2 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 2000 total points
ID: 38388938
but i am seeing weird stuff like
 [Ljava.lang.String;@83cc67

Only if you attempt to somehow print the array without using deepToString
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 38389044
:)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses
Course of the Month21 days, 5 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question