File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pattren

 
Rahul Surati
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
are you having trouble with the servlet or the pattern?
 
Hemant Thard
Ranch Hand
Posts: 122
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[direct answer removed]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64186
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Hemant Thard
Ranch Hand
Posts: 122
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will keep that in mind ...

Thanks
 
Rahul Surati
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hemant Thard wrote:[direct answer removed]
 
avi sinha
Ranch Hand
Posts: 453
Google Web Toolkit Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic