Automatically check for multiples of a number?

Looking for a way to automatically check for multiples of only 48 so I don’t need to copy/paste elif statements for every multiple of the number like so: elif amount == 48: print(self.cups[0]+(str)(self.ingredients[0])+”\n”+self.cups[1]+(str)(*self.ingredients[1])+”\n”+self.cups[2]+”\n”+(str)(*self.ingredients[2])) elif amount == 48*2: print(self.cups[0]+(str)(*self.ingredients[0])+”\n”+self.cups[1]+(str)(*self.ingredients[1])+”\n”+self.cups[2]+”\n”+(str)(*self.ingredients[2]))

Details

Question to people who have experience in developing programs for working with the camera android. Ambient light saturation

In the camera itself there is a module that controls peak saturation, if more light enters than a certain value, the camera does not become sensitive, this is the so-called ambient light saturation, and there is a special system to control this phenomenon, so as not to damage the camera. So the question is whether…

Details

Copying (cloning) an array of objects of type of wrapper classes

I understand how the System.arraycopy() and Arrays.copyOf() methods work for copying arrays of primitive and reference types. But I got the following mess in the code. Integer[] integer = new Integer[] {4, 17, 5, 8, 22}; Integer[] integer1 = Arrays.copyOf(integer, integer.length); System.out.println(Arrays.toString(integer)); System.out.println(Arrays.toString(integer1)); integer[1] = 455; System.out.println(Arrays.toString(integer)); System.out.println(Arrays.toString(integer1)); Result : [4, 17, 5, 8, 22]…

Details