±Û¾´ÀÌ :ÀÓäÀÏ 1998³â 6¿ù 14ÀÏ 05:46:40
In Reply to: ÆÄÀÏ¿¡¼ ½ºÆ®¸µÀ» ÀоîµéÀÎ ÈÄ,½ºÆ®¸µ ºñ±³.. posted by ±è¼º±Ù on 1998³â 6¿ù 13ÀÏ 15:06:54:
URLConnection conn = null;
DataInputStream data ;
String hwan;
conn = this.theURL.openConnection();
conn.connect();
data = new DataInputStream(new BufferedInputStream(conn.getInputStream()));
while((hwan = data.readLine()) != null)
{
if(hwan=="boy")//ÀÌ ¹®ÀåÀÌ ³í¸®Àû error¸¦ À¯¹ß½ÃŲ ¹®Àå.
{
iwidth = compu1_img.getWidth(this);
iheight = compu1_img.getHeight(this);
}
....
}
JavaÀÇ String¿¡¼´Â ¹®ÀÚ¿À» ºñ±³Çϱâ À§ÇØ
compareTo(String)À» »ç¿ëÇÕ´Ï´Ù.
À§Ã³·³ ==À» ¾²°Ô µÇ¸é °°Àº °´Ã¼ÀÎÁö¸¦ ºñ±³ÇÏ´Â °á°ú¸¦ ÃÊ·¡ÇÕ´Ï´Ù.
Âü°í°¡ µÇ¼Ì±â¸¦.