UpdateDisplay.java 892B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * Write a description of class UpdateDisplay here.
  3. *
  4. * @author (your name)
  5. * @version (a version number or a date)
  6. */
  7. public class UpdateDisplay
  8. {
  9. // instance variables - replace the example below with your own
  10. private int x;
  11. /**
  12. * Constructor for objects of class UpdateDisplay
  13. */
  14. public UpdateDisplay(Double displayNumber)
  15. {
  16. // initialise instance variables
  17. //x = 0;
  18. }
  19. /**
  20. * An example of a method - replace this comment with your own
  21. *
  22. * @param y a sample parameter for a method
  23. * @return the sum of x and y
  24. */
  25. SwitchModes sm = new SwitchModes();
  26. public String UpdateDisplay(Double displayNumber)
  27. {
  28. String str="";
  29. // update number system based on display mode variable (see SwitchModes class)
  30. return str;
  31. }
  32. }