CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Mon, 18 Aug 2025 08:28:15 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20101031062528
location: https://web.archive.org/web/20101031062528/https://forums.oreilly.com/user/30290/Java-Learner1/
server-timing: captures_list;dur=0.562672, exclusion.robots;dur=0.027441, exclusion.robots.policy;dur=0.016111, esindex;dur=0.011055, cdx.remote;dur=12.138519, LoadShardBlock;dur=165.426309, PetaboxLoader3.datanode;dur=50.205027, PetaboxLoader3.resolve;dur=65.875961
x-app-server: wwwb-app201
x-ts: 302
x-tr: 209
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app201; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Mon, 18 Aug 2025 08:28:16 GMT
content-type: text/html;charset=utf-8
x-archive-orig-date: Sun, 31 Oct 2010 06:25:28 GMT
x-archive-orig-server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.8
x-archive-orig-x-powered-by: PHP/5.2.8
x-archive-orig-cache-control: no-cache, must-revalidate, max-age=0
x-archive-orig-expires: 0
x-archive-orig-pragma: no-cache
x-archive-orig-connection: close
x-archive-orig-transfer-encoding: chunked
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 31 Oct 2010 06:25:28 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sun, 31 Oct 2010 06:25:28 GMT", ; rel="memento"; datetime="Sun, 31 Oct 2010 06:25:28 GMT", ; rel="last memento"; datetime="Sun, 31 Oct 2010 06:25:28 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_18_20101031051543_crawl103-c/52_18_20101031062512_crawl100.arc.gz
server-timing: captures_list;dur=0.601083, exclusion.robots;dur=0.026122, exclusion.robots.policy;dur=0.015350, esindex;dur=0.013560, cdx.remote;dur=37.443275, LoadShardBlock;dur=180.819483, PetaboxLoader3.datanode;dur=145.960746, PetaboxLoader3.resolve;dur=100.247494, load_resource;dur=122.708067
x-app-server: wwwb-app201
x-ts: 200
x-tr: 398
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
Java_Learner1 - Viewing Profile
O'Reilly Forums > Viewing Profile

Profile
Personal Photo
Rating
Options
Options
Personal Statement
Java_Learner1 doesn't have a personal statement currently.
Personal Info
Java_Learner1
New Member
Age Unknown years old
![]()
Location Unknown
Birthday Unknown
Interests
No Information
Statistics
Joined: 20-October 10
Profile Views: 35*
Last Seen: 21st October 2010 - 11:00 AM
2 posts (0 per day)
Contact Information
![]() ![]() ![]() ![]() * Profile views updated each hour
![]() |
Topics
Posts
Gallery
Comments
Friends
My Content
20 Oct 2010
Code:
package hpg_554; import java.util.*; public class Main { LinkedList<Mountain> mtn = new LinkedList<Mountain>(); class Mountain { String Name; Integer Height; public Mountain (String n, Integer h) { Name = n; Height = h; } public String getName() { return Name; } public Integer getHeight() { return Height; } } public class NameCompare implements Comparator<Mountain>{ public int compare (Mountain one, Mountain two){ return one.getName().compareTo(two.getName()); } } public class HeightCompare implements Comparator<Mountain>{ public int compare (Mountain one, Mountain two){ return one.getHeight().compareTo(two.getHeight()); } } public static void main(String[] args) { new Main().go(); } public void go(){ mtn.add(new Mountain("Longs", 14255)); mtn.add(new Mountain("Elbert",14433)); mtn.add(new Mountain("Maroon",14256)); mtn.add(new Mountain("Castle",14264)); System.out.println("as emntered : \n " + mtn); System.out.println(); NameCompare nc = new NameCompare(); System.out.println(mtn); Collections.sort(mtn,nc); System.out.println(); System.out.println("by name : \n" + mtn); HeightCompare hc = new HeightCompare(); Collections.sort(mtn,hc); System.out.println(); System.out.println("By Height: \n" + mtn); } } Result : (IMG:https://forums.oreilly.com/style_emoticons/default/ohmy.gif) (IMG:https://forums.oreilly.com/style_emoticons/default/ohmy.gif) (IMG:https://forums.oreilly.com/style_emoticons/default/mellow.gif) run: as emntered : [hpg_554.Main$Mountain@19821f, hpg_554.Main$Mountain@addbf1, hpg_554.Main$Mountain@42e816, hpg_554.Main$Mountain@9304b1] [hpg_554.Main$Mountain@19821f, hpg_554.Main$Mountain@addbf1, hpg_554.Main$Mountain@42e816, hpg_554.Main$Mountain@9304b1] by name : [hpg_554.Main$Mountain@9304b1, hpg_554.Main$Mountain@addbf1, hpg_554.Main$Mountain@19821f, hpg_554.Main$Mountain@42e816] By Height: [hpg_554.Main$Mountain@19821f, hpg_554.Main$Mountain@42e816, hpg_554.Main$Mountain@9304b1, hpg_554.Main$Mountain@addbf1] BUILD SUCCESSFUL (total time: 1 second) |
Last Visitors
Java_Learner1 has no visitors to display.
Comments
Other users have left no comments for Java_Learner1.
Friends
There are no friends to display.
![]() |
![]() |
Lo-Fi Version | Time is now: 30th October 2010 - 10:25 PM |