Skip to content

Instantly share code, notes, and snippets.

@arjunsk
Created August 17, 2018 18:20
Show Gist options
  • Select an option

  • Save arjunsk/06d76c53123817bbb9706187700637a2 to your computer and use it in GitHub Desktop.

Select an option

Save arjunsk/06d76c53123817bbb9706187700637a2 to your computer and use it in GitHub Desktop.
package products;
public class DotMatrixPrinter implements IPrinter {
@Override
public void print(String data) {
System.out.println("DotMatrix Actions performed on "+data);
}
@Override
public boolean stop() {
//perform action and then return true on success
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment