• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sum minus same as paper  RSS feed

 
Miguel Enriquez
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all
basic question: how declare a array of integers multidimensional and not know the number of cols, rows?
basically i need do these:
12598
456
--------
13054

or a minus.... then i think in a multidimensional array but not know the nmber of elements, in tese case i know the length of both numbers but what happend with the carriage?
carriage for me is: 10+4 = 4 and 1 is the carriage
thanks
 
Eddie Vanda
Ranch Hand
Posts: 283
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Miguel,
That is not a simple task. You probably should look at single dimension arrays first - maybe take a look at ArrayList. Then extend that to the first array holding the pointers to the arrays in the second dimension.
Good luck
Ed
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!