Help to to resolve run time error

Error is Attempt to invoke virtual method ‘java.lang.class.java.lang.Object.getclass()’ on a null object reference

blocks (44) blocks (46) blocks (50) blocks (45)

blocks (59) blocks (58) blocks (57) blocks (56) blocks (55)

blocks (62) blocks (61) blocks (60)

blocks (67) blocks (66) blocks (65) blocks (64) blocks (63) blocks (68)

keep this loop(for each number from to by) out side of the if else statement

image

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.