خرید بک لینک

Vote count: -1

I'm getting errors that this has an illegal start of expression.Any help with what I'm missing here?

import java.util.*;
class Point {
   int x;
   int y;
   public Point(int xref, int yref) {
      x = xref;
      y = yref;
   }
   public int quardrant() {
      if ((x>0)&&(y>0))
         retu 1;
      else if ((x>0)&&(y<< /b >0))
         retu 4;
      else if ((x<< /b >0)&&(y>0))
         retu 2;
      else if ((x<< /b >0)&&(y<< /b >0))
         retu 3;
      else
         retu 0;
   }
}
class PointClass {
   public static void main(String args[]) {
      int x;
      int y;
      Scaer s = new Scaer(System.in);
      System.out.print("Enter x and y: ");
      x = s.nextInt();
      y = s.nextInt();
      Point p = new Point(x.y);
      System.out.println(p.quadrant());
   }
}    

error: illegal start of expression
else if ((x>0)&&(y<< /b >0))
else if ((x<< /b >0)&&(y>0))
else if ((x<< /b >0)&&(y<< /b >0))
else if ((x<< /b >0)&&(y<< /b >0))

And I tried to add a ";" after them, it doesn't work. I think the problem is about /b, but I don't know how to solve it.

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 31 فروردين 1395 ساعت: 4:23

صفحه بندی