def is_java_file(file_name):
    """
    Check if a file name has a .java ending
    :param file_name: file name to check
    :type file_name: str
    :return: True if file has .java ending
    :rtype bool
    """
    return file_name.endswith(".java")