Java tutorial
//package com.java2s; public class Main { public static String getScores(int home_goals, int awaygoals) { if (home_goals < 0 || awaygoals < 0) { return " - "; } else { return String.valueOf(home_goals) + " - " + String.valueOf(awaygoals); } } }