Until today, to install Java in Ubuntu 10.10 Maverick Meerkat, you'd either have to switch to the Lucid Partner repository or use a PPA. That's not required because Sun Java (6.21) has finally been uploaded to the Ubuntu 10.10 Maverick Meerkat official Partner repository.
To install (Sun) Java in Ubuntu 10.10 Maverick Meerkat you'll have to enable the Partner repository: open Ubuntu Software Center and go to Edit > Software Sources, then on the "Other Software" enable the Partner repository (it should be the first on the list; it looks like this: "http://archive.canonical.com/ubuntu maverick partner".).
Then, click "Close" and when asked, click "Reload" and finally install Sun Java6 in Ubuntu 10.10 by searching for it in Ubuntu Software Center.
Then, click "Close" and when asked, click "Reload" and finally install Sun Java6 in Ubuntu 10.10 by searching for it in Ubuntu Software Center.