Allthough it's hardcoded af, in your case this would be the solution:
double standardDeviation = Math.sqrt(Math.pow((n1-mean),2) + Math.pow((n2-mean),2) + Math.pow((n3-mean),2) + Math.pow((n4-mean),2) + Math.pow((n5-mean),2)) / 5);
Add this after caclculation of the mean and that's it. Don't forget to import Math library (import java.lang.Math;
). But it's a very ugly way to code. You should change this and work with loops instead.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…