GeeCON Prague 2014*
The moose likes Servlets and the fly likes pattren Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "pattren" Watch "pattren" New topic
Author

pattren

Rahul Surati
Greenhorn

Joined: Mar 04, 2009
Posts: 20
i want 2 print following pattern in the servlet..


1 2 3 4 5
16 17 18 19 6
15 24 25 20 7
14 23 22 21 8
13 12 11 10 9 ..



please suggest me a logic for this..
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

are you having trouble with the servlet or the pattern?
Hemant Thard
Ranch Hand

Joined: Dec 23, 2008
Posts: 122
[direct answer removed]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61298
    
  66

Hemant Thard, please do not give direct solutions. JavaRanch is a learning site, not a code mill. Please help posters to solve their own problems rather than just giving out code that does it for them. Thanks.

Please read this for more information.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Hemant Thard
Ranch Hand

Joined: Dec 23, 2008
Posts: 122
I will keep that in mind ...

Thanks
Rahul Surati
Greenhorn

Joined: Mar 04, 2009
Posts: 20
David O'Meara wrote:are you having trouble with the servlet or the pattern?


I am having problem with pattern.. please give me soluttion for this..
Rahul Surati
Greenhorn

Joined: Mar 04, 2009
Posts: 20
Hemant Thard wrote:[direct answer removed]
avi sinha
Ranch Hand

Joined: Mar 15, 2009
Posts: 453

Rahul Surati wrote:
David O'Meara wrote:are you having trouble with the servlet or the pattern?


I am having problem with pattern.. please give me soluttion for this..


have you understood how the sequence is being generated?? just think about that and you will get the solution.for guidance Ranchers are here to guide you to be on the right path.
just show some efforts.

avi sinha


SCJP 5.0 SCWCD 5.0
 
GeeCON Prague 2014
 
subject: pattren