I'm new here and I have an assignment about java that i'm not understand on how to do it.Here is the question:
Write a test program that read an integer n and call a method to display a pattern as follows:
1
2 1
3 2 1
4 3 2 1
...
n n-1 ... 3 2 1
The method header is
public static void displayPattern(int n)
SHINICHI
0
Newbie Poster
Recommended Answers
Jump to PostDaniWeb Member Rules (which you agreed to when you signed up) include:
"Do provide evidence of having done some work yourself if posting questions from school or work assignments"
http://www.daniweb.com/community/rulesPost what you have done so far and someone will help you from there.
All 4 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
NormR1
563
Posting Sage
Team Colleague
radhakrishna.p
29
Posting Whiz in Training
jalpesh_007
-3
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.