sorry for this.here's the code:
import java.util.*;
class calculator
{
int x,y,result;
{
x=0;
y=0;
result=0;
Type: Posts; User: ATIBA SHEIKH
sorry for this.here's the code:
import java.util.*;
class calculator
{
int x,y,result;
{
x=0;
y=0;
result=0;
umm...oh yes.it just slipped off from my mind...thanks
--- Update ---
but now again it says can't find symbol.."ch=ob.nextInt();"
int ch;
do
{
i have programmed two programs and both of them when compiled highlighted the same error:Scanner ob=new Scanner(System.in);.saying cannot find symbol
void input()
{
Scanner ob=new...