<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_app_linked(source, pkg, java_package):
 """ Returns true if the compile project line exists exists in the file """

        for line in source.split("\n"):
            if java_package in line:
                return True
        return False