00:01
This question asks us to write a short program that takes input three integers, a, b, and c, from the java console, determine if they can be used in the correct arithmetic formula.
00:10
So we'll start by writing our main method, you know, static, sorry, public static void, actually we can say boolean, and, you know, main, actually doesn't matter, we could say, void.
00:38
We'll just make this our main method.
00:41
Main and then we'll have string of arcs.
00:49
So first thing we need to do is set up a scanner.
00:52
Scanner s -c -n -r equals new scanner with system in because we want to get input from the system input from the user.
01:04
And then we can say int a, b, c, initialize all those.
01:09
A equals scanner.
01:11
Dot next int b equals scanner r dot next int and c equals scanner dot next int then after we've got all those we simply need to check so if um from here on from here on out what we can do is we can write a separate helper method to determine if the three work in an equation together and and a way we can do that is by saying if check a, b, c.
02:01
And then if that's true, then we can print out here...