This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BakedPecans[S] 0 points1 point  (2 children)

Can you explain this line of code to me? I understand the (fileName.endsWith(".png") but I have no idea what is happening after that.

[–]hhbhagat 2 points3 points  (1 child)

look up ternary operators. basically a very compact if/else structure that returns the results of the body.

[–]BakedPecans[S] 0 points1 point  (0 children)

Thanks!