Is there a more efficient way of programming this:
if( c == 1 ) { Points = 10; } else if( c == 2 ) { Points = 20; } else if( c == 3 ) { Points = 30; } else if( c == 4 ) { Points = 45; } else if( c == 5 ) { Points = 60; } else if( c == 6 ) { Points = 75; } else if( c == 7 ) { Points = 95; } else if( c == 8 ) { Points = 115; }
I'm kinda new to Java..