fork(1) download
  1. class Program {
  2. public static void main(String[] args) {
  3. System.out.println(calculateAverage("10", "20"));
  4. }
  5. private static float calculateAverage(String a, String b) {
  6. return (Float.parseFloat(a) + Float.parseFloat(b)) / 2;
  7. }
  8. }
  9.  
  10. //https://pt.stackoverflow.com/q/355849/101
Success #stdin #stdout 0.05s 2184192KB
stdin
Standard input is empty
stdout
15.0