If statement for gauge j2me
Below is part of some code which displays a gauge which shows the progress from 0 - 100 of a word counter, however i 开发者_如何转开发am unsure how to code the if statement to display some text to show a successful count. I have had a go at the if statement " if gg_Progress.value = 100 " which i know is wrong, does anyone know what it should say. Thanks
public void SetGauge(int value) {
this.gg_Progress.setValue(value);
}
public void GaugeCheck () {
if gg_Progress.value = 100 {
string_Progress.setText("The number of words have been successfully counted");
}
}
if (this.gg_Progress.getValue() == 100) {
精彩评论