figure f=new figure(45,6);
rectangle r=new rectangle(10,30);
triangle t=new triangle(10,20);
figure a;
a=f;
System.out.println(a.area());
Write a Java program that correctly implements producer consumer problem using the concept of inter thread communication
NewThread(String threadname)
{
name=threadname;
t=new Thread(this,name);
System.out.println(“New Thread:”+t);
t.start();
}
Enter input string
a+b*c
Input String:a+b*c
Output String:
abc*+
public stack(int s)
{
size=s>0?s:10;
top=-1;
elements=(E[])new Object[size];
}
This is the one stop educational site for all Electronic and Computer students. If you want to learn something new then we are here to help. We work on Microcontroller projects, Basic Electronics, Digital electronics, Computer projects and also in basic c/c++ programs.
#Home #Sitemap #Submit #Terms of Use
Copyright©2011 electrofriends.com All Rights Reserved
Contact:info@electrofriends.com | Powered by Dhyeya