#finding difference between 2 numbers within java array

8 messages · Page 1 of 1 (latest)

lunar dove
#

I currently have a program that deals a hand of 5 cards to a player & it finds the largest number in the hand & the smallest.
Im having trouble trying to figure out a way to find the difference between them.
This is what i have so far.
Any help is appreciated!

inner kayakBOT
#

This post has been reserved for your question.

Hey @lunar dove! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

idle swift
#

what is it supposed to be subtracting from what

#

Card is your own class

#

java doesn't know how to interpret that as a number

lunar dove
inner kayakBOT