aspose file tools
The moose likes Servlets and the fly likes pattren Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply 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: 119
[direct answer removed]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56168
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Hemant Thard
Ranch Hand

Joined: Dec 23, 2008
Posts: 119
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: 452

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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: pattren
 
Similar Threads
Choose Your Own Adventure Thread
Somebody in office on a saturday
Your lucky number
Some of the most influential books
Struts Survey - Please respond