Recupero sul linguaggio Java

Sia

int      a = 3,
         b = 7,
         c = 0;
double   x = 0.0;
double[] v = { 3.5, 0.0, -4.3, 3.0 };

Svolgi i calcoli e commenta

switch(a)
{
   case 1: a=0;
   case 2: a--; break;
   case 3: a++;
   case 4: a*=2; break;
}
v=qq(v);     |  double[] qq(double[] q)
             |  {
             |     double[] p = new double[3];
             |     p[1]=q[0];
             |     return p;
             |  }
x=Math.PI + a++;
do
{
  b-=2;
  a+=3;
}
while(a < 10);
x=cc(a, x);  |  double cc(int a, double b)
             |  {
             |     b=a+b;
             |     return b;
             |  }
c=b<<a;
c=(int)(a*b*(x+0.5));
int q=0, w=0, e=0;
for(int i=0; i < v.length/2; i++)
{
  if(v[i] > 0.0)       q++;
  else if(v[i] == 0.0) w++;
  else                 e++;
}
c=a|b;
for(int i=0; i < v.length; i++)
   x+=(v[i] != 0.0) ? 2*v[i] : 0;
c=a/b+b%a;

- ApPuNtIdIuNiNfOrMaTiCo