Lily P.

asked • 11/14/20

Using Method in If-statement

Hi!

I would like to use an if-statement that will execute a code if a button is clicked, but I can't do the following:


if (buttonplus_Click = true)

{

//code

}


Is there any other way?

1 Expert Answer

By:

Patrick B. answered • 11/14/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Lily P.

Ah ok thanks. I am not proficient in Java, but I understand the concept.
Report

11/15/20

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.