Convert This Matlab Code Into Java Code And Show That

Convert This Matlab Code Into Java Code And Show That