public class Main { public static void main(String[] args) { TempC tempC = new TempC(); TempF tempF = new TempF(tempC); tempF.setValue(68); System.out.println(tempC.getValue()); } } public class TempF { double value; TempC tempC; public TempF(TempC tempC) { this.tempC = tempC; } public void setValue(double tempF) { this.value = tempF; tempC.updateTemp(value); } public double getValue() { return value; } } public class TempC { double value; public TempC() { } public void updateTemp(double tempF) { this.value = (tempF - 32) / 1.8; } public double getValue() { return value; } }