With random generated #, how do I get code to match step 2 (“You matched all digits: you win $3,000”?

With random generated #, how do I get code to match step 2 ("You matched all digits: you win $3,000"?

Question by dsrvbrogers: With random generated #, how do I get code to match step 2

(“You matched all digits: you win ,000”? import java.util.Scanner; public class LotteryMatch

 

Best answer: Answer by Germann A I would say convert your lottery result and lottery pick to strings and use string methods to compare strings or any parts…

What do you think? Answer below!

wow!

CHECK THE JACKPOT

YOUR LOTTERY!

2016-01-16_235511

2013-08-26_00844

$125,000,000

in the US PowerBall!

powerball

Customers get 20% cash back in bonus money on all USA Powerball tickets!

Spread-the-Word

Please follow and like us:

Leave a Reply

Your email address will not be published. Required fields are marked *

2 × 2 =

This site uses Akismet to reduce spam. Learn how your comment data is processed.