File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -823,8 +823,8 @@ public int compareTo(Fraction other) {
823823 In Python, we could do this as follows:
824824 </p >
825825
826-
827- <program xml : id = " python-static " interactive =" activecode" language =" python" >
826+ < listing xml : id = " python-static-member-variable " >
827+ <program interactive =" activecode" language =" python" >
828828 <code >
829829class Student:
830830 numStudents = 0
@@ -839,13 +839,14 @@ def main():
839839main()
840840 </code > <tests > </tests >
841841 </program >
842+ </listing >
842843
843844 <p >
844845 In Java, we would write this same example using a <c >static</c > declaration.
845846 </p >
846847
847-
848- <program xml : id = " java-static " interactive =" activecode" language =" java" >
848+ < listing xml : id = " java-static-member-variable " >
849+ <program interactive =" activecode" language =" java" >
849850 <code >
850851public class Student {
851852 public static Integer numStudents = 0;
@@ -865,6 +866,7 @@ public class Student {
865866}
866867 </code > <tests > </tests >
867868 </program >
869+ </listing >
868870
869871 <p >
870872 <idx >static member variable</idx >
You can’t perform that action at this time.
0 commit comments