🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.java
Article #141706

pobieranie nula z hashmapy

#141706
From: pluton
Date: Thu, 16 Oct 2008 10:07
13 lines
1100 bytes
Witam,
Mam hashMap<String,Double> i pobieram
iloraz=hmFiles.get(key);

Problem w tym, Åže key nie istnieje. Jak zbadac

if (iloraz == null ) ?

(pokretnie to opisalem, ale mam nadzieje, ze wiadomo o co biega )

pozdrawiam

;pluton
Technical Details
Message-ID: <gd73pg$e1f$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: "pluton" <zielonadupa@gazeta.pl>
Newsgroups: pl.comp.lang.java
Subject: pobieranie nula z hashmapy
Date: Thu, 16 Oct 2008 12:07:50 +0200
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 17
Message-ID: <gd73pg$e1f$1@inews.gazeta.pl>
NNTP-Posting-Host: 137.122.225.195.static.bait.pl
X-Trace: inews.gazeta.pl 1224151664 14383 195.225.122.137 (16 Oct 2008 10:07:44 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Thu, 16 Oct 2008 10:07:44 +0000 (UTC)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-Priority: 3
X-RFC2646: Format=Flowed; Original
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-User: zielonadupa
X-MSMail-Priority: Normal
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit