I want make undo/redo on pbitmap/canvas, but i have got problems with sending a linkedarray between drawhandler.java to panel.java ..
errors:
Can only iterate over an array or an instance of java.lang.Iterable
LinkedArray cannot be resolved to a type
public void onDrawAll(LinkedArray paths, Paint paint); <—–the error is on this line
All my code can be seen here
Maybe you wanted to write
LinkedListinstead ofLinkedArray?I don’t know in the standard java api a such class LinkedArray, or I am missing something, or that class is from a third party library you use.