how to write private methods within a class?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Katy Lee
    New Member
    • Oct 2011
    • 1

    how to write private methods within a class?

    I wrote java code to create different kinds of flags with different sizes and colors in

    public static void drawFlag(MyGrid grid, int countryCode).

    Nevertheless there is alot of color overlapping. Can you please help me with writing additional methods with private & static as specified in the assignment to eliminate duplicative code? Thank you so much!
Working...