[Chicago] Advice about a Java program?

Randy Baxley randy7771026 at gmail.com
Fri Oct 10 22:01:22 CEST 2014


Not sure I completely understand your question but assembler shift left and
shift right in Java and convert ints to doubles in Java Google searches
provide answers I would have used if this was a Fortran and PL/1 double
word problem on the Cray.

On Fri, Oct 10, 2014 at 12:43 PM, Lewit, Douglas <d-lewit at neiu.edu> wrote:

> This is probably the wrong forum for this, but I thought I would give it a
> try because the people at my university cannot always be counted on for
> good feedback.
>
> I wrote this Java program that multiples two matrices.  I think it's
> basically pretty good.  (And doing this in Python is WAY EASIER because
> Python doesn't distinguish between lists of ints and lists of doubles, and
> actually allows both data types to get combined in the same list. )
>
> However, I'm having some issues with the formatted output of my "float"
> matrices.  They are technically doubles, but in the program I refer to them
> as floating point values for the sake of clarity because some users of the
> program may not know what a double is.  Is that like a double martini?  : )
>
>
> I'm trying to get all of my numbers lined up properly in their respective
> columns, but it's just not working out that way, even with the *printf *command.....???
>
>
> If anyone can offer some good suggestions about good formatting, that
> would be great.  I would really appreciate it.
>
> By the way, I did the same thing in Python and it took less than half as
> much code!  The Python code was short and to the point.  I guess Java has
> its uses, but for some things it is really tedious and overly complicated.
> Ah well.... but then again Java developers make really good money, so I
> guess I'll have to study both Java AND Python!
>
> Take care and thanks for the feedback.
>
> Best,
>
> Douglas Lewit
>
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> https://mail.python.org/mailman/listinfo/chicago
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20141010/b3fee9a6/attachment.html>


More information about the Chicago mailing list