(for java) Using switch case, calculate following sum of series...!

1- (x/2) + (x/3) - (x/4) + (x/5)… + (x/10) … need java code for this program!