yes, you can create a method in your GPA class which take the array as parameter and then print it, but that is very bad OO design.
stultuske
Industrious Poster
4,366 posts since Jan 2007
Reputation Points: 1,318
Solved Threads: 610
Skill Endorsements: 23
ok, what is 'result'?
in your first code it was an array, and now you're trying to compare it as being a single char.
if it's still an array, that means it's actually an object which you are treating as a primitive (a single char) then there's your problem.
stultuske
Industrious Poster
4,366 posts since Jan 2007
Reputation Points: 1,318
Solved Threads: 610
Skill Endorsements: 23