Shift + Enter · بدء / إعادة البدء
اقرأ دليل النص البرمجي
- لغة البرمجة
- Java
- الصعوبة
- متوسط
Create a class with a constructor and method.
public class Counter {
private int value;
public Counter(int start) {
value = start;
}
public int increment() {
value += 1;
return value;
}
}