package at.fhtw.mcs;

class Main {
	public static void main(String[] args) {
		System.out.println("Hallo Josh und Ralf.");
	}

	public int testedMethod(int n) {
		return n * 2;
	}
}

package at.fhtw.mcs;

import java.util.Arrays;
import java.util.stream.Collectors;

class Main {
	
	public static void main(String[] args) {
		/*
		 * Don't try this at home kids, just using a random Java 8 feature
		 * to ensure Gradle runs with J8.
		 */
		
		System.out.println("Hallo " + 
				Arrays.stream(new String[] { "Josh", "Ralf" })
					  .map(name -> "'" + name + "'")
					  .collect(Collectors.joining(" und ")) 
				+ ".");
	}

	public int testedMethod(int n) {
		return n * 2;
	}
}

Use Java 8 in Main to ensure we're running with Java8