example ive used the node method trial
Code:
class Node{
String item;
Node next;
Node first= new Node();
Node Second=new Node();
Node third=new Node();
first.item ="1";
second.item="2";
third.item="3"
first.next= second;
second.next= third
third.next=null;
didnt work
Code:
public String toString() {
String s= "";
for (Node x= first;
x!= null;
x=x.next;)
s += x.item +"";
return s;
didnt work
stack method
StackClass stack1=new StackClass();
try
{
stack1.push(new IntElement(1); got sophisticated so left it out
i need just to make it simple thats all
M+ (memory store button is clicked) stores the values
M- (Memory recall button is clicked ) recalls the values as mentioned earlier
when the recall button is clicked it sets the stored numbers back on the textField A and Number using setText("") method its possible with a calculator like microsoft calculator as you know why not java if not any thing is possible
Your help im really stuck on this one i know it is straight forward any suggestions??
