Ad
Code
Diff
  • public class DependencyTracker {
      
      String theDependency = "";
      
      public String getDependencies(String dependencyName) {
        return theDependency;
      }
      
      // If "a" depends on "b," "a" is `dependent` and "b" is dependendUpon
      public void registerDependency(String dependent, String dependedUpon) {
        theDependency = "H";
      }
    }
    • public class DependencyTracker {
    • String theDependency = "";
    • public String getDependencies(String dependencyName) {
    • return "";
    • return theDependency;
    • }
    • // If "a" depends on "b," "a" is `dependent` and "b" is dependendUpon
    • public void registerDependency(String dependent, String dependedUpon) {
    • theDependency = "H";
    • }
    • }