Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In Java Eclipse platform create a workable link between section 1 and 2: ///////

ID: 3916506 • Letter: I

Question

In Java Eclipse platform create a workable link between section 1 and 2:

//////////////// 1 ///////////////////

TT.java

import processing.core.PApplet;

public class TestTiles extends PApplet {

CatPics cats ;

Dogs dogs;

RandomSpotter spots ;

Timer watch;

public static void main(String[] args) {

PApplet.main("TestTiles");

}

public void settings()

{

size(900, 900);

}

public void setup ( ) {

background ( 430 ) ;

cats = new CatPics ( this, 600, 0, 300 ) ;

dogs = new Dogs (this, 300, 300, 300 );

spots = new RandomSpotter ( this, 0, 0, 300 ) ;

watch = new Timer(this, 0, 300, 300 ) ;

}

public void draw ( ) {

cats.animate ( 1 ) ;

spots.animate( 1 ) ; dogs.animate( 1 ) ;

watch.animate( 1 ) ;

}

}

///////////////////// 2 /////////////////////////////

T.java

import java.util.Date;

public class Timer {

public static void main(String args[]) {

Date date = new Date();

String str = String.format("Current Date/Time : %tc", date );

System.out.printf(str);

}

}

Explanation / Answer

public class Timer{ PApplet parent; // The parent PApplet that we will render ourselves onto //Create constructor and initialize parent Timer(PApplet p) { parent = p; }

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote