فيكم توفرولي الكود للسؤال التالي بكون مشكور جدا
write a java class NODE that represent a shape that mayy be aline , rectangle or a circle .
the class must store the dimensions of the shape and type as integer .
override the method toString() to convert the shape to a string which show all the informations.
write the class STACK which implemented as linked list of nodes with all functions push,pop and print.
write the main use the basic operations of the stack to push and pop shapes .

HW1.java

class NODE{ ................ }
class STACK { .................. }
public class HW1 { public static vvoid main() { } }