MediaWiki API result

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "Red_Metal",
        "continue": "gapcontinue||"
    },
    "query": {
        "pages": {
            "361": {
                "pageid": 361,
                "ns": 0,
                "title": "Record",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "a collection of data."
                    }
                ]
            },
            "939": {
                "pageid": 939,
                "ns": 0,
                "title": "Rectangle class assignment",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "=== Rectangle class ===\nCreate a Rectangle class using the following specifications (HINT: Use your Circle class as a template):\n\n'''BE SURE TO COMMENT YOUR CODE'''\n\n'''Attributes (private):'''\n* double length (default: 0.0)\n* double width (default: 0.0)\n\n'''Methods (public)'''\n* default constructor (sets all attributes to their defaults)\n* specific constructor (will have as many parameters as there are attributes)\n** set all the attributes to be the same as the input parameters\n* setters (mutators) for all attributes\n* getters (accessors) for all attributes\n* double getArea() (returns the area of the retangle)\n\n=== RectangleTestMain: ===\nUse the following code to test your Rectangle class:\n\n<source lang=\"java\">\npublic class RectangleTestMain\n{\n  public static void main(String [] args)\n  {\n    //use the default constructor to create a new instance of Car\n    Rectangle myRect = new Rectangle();\n\n    //testing all getters (accessors)\n    System.out.println(\"myRect.getLength(): \" + myRect.getLength());\n    System.out.println(\"myRect.getWidth(): \" + myRect.getWidth());\n\n    //testing all setters (mutators)\n    myRect.setLength(3.1);\n    myRect.setWidth(2.0);\n    \n    System.out.println(\"myRect.getLength(): \" + myRect.getLength());  //should see 3.1\n    System.out.println(\"myRect.getWidth(): \" + myRect.getWidth());    //should see 2.0\n\n    //test getArea()\n    double area = myRect.getArea();\n    System.out.println(\"Area => \" + area);  //should see 6.2\n  }\n}\n</source>"
                    }
                ]
            }
        }
    }
}