1. void triangle1( int n)
that for a given parameter n displays:
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
1 2 3 4 5 6
2.char mostOftenIn(String s)
that for a given string s, returns the character that occurs most often in s.
For example for s = "abcaabbcb"
mostOftenIn(s) must return 'b'