Skip to content

Instantly share code, notes, and snippets.

@MaxxselvaK
Created October 16, 2022 12:35
Show Gist options
  • Save MaxxselvaK/8d614c91bc91c41ea22bd861a7e62fed to your computer and use it in GitHub Desktop.
Save MaxxselvaK/8d614c91bc91c41ea22bd861a7e62fed to your computer and use it in GitHub Desktop.
Demo
package FlyWeight;
public class Demo {
public static void show() {
SpreadSheet sheet = new SpreadSheet();
sheet.setContent(0, 0, "Hello");
sheet.setContent(1, 0, "World");
sheet.setFontFamily(0, 0, "Arial");
sheet.render();
}
public static void main(String[] args) {
show();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment