20220214 º¹½À
Çâ»óµÈ for¹®À» »ç¿ëÇؼ ·Î±×ÀΠâ ¸¸µé±â!!!
String[][] member = new String[][]{{"admin","123456","1"},{"test","123456","0"}};
Çâ»óµÈ for ¹® p.166
for(String[] mem : member){
if (id.equals(mem[0]) && passwd.equals(mem[1])){
System.out.println("·Î±×ÀÎ ¼º°ø");
}else{
System.out.println("¾ÆÀ̵ð ¶Ç´Â ºñ¹Ð¹øÈ£¸¦ È®ÀÎÇØÁÖ¼¼¿ä");
}
class T0214_37//
{
static void pwEnc()
{
//ºñ¹Ð¹øÈ£¸¦ ¾ÏÈ£È
}
public static void main(String[] args)
{
/* µ¥ÀÌÅÍ °ü¸® */
//º¯¼ö > ¹è¿ > ÆÄÀÏ > µ¥ÀÌÅͺ£À̽º
String[][] member = new String[][]{{"admin","123456","1"},{"test","123456","0"}};
/* ·Î±×ÀÎâ */
String id="admin";
String passwd="1234567";
/* ·Î±×ÀÎó¸® */
/* °Ô½ÃÆÇ */
/* ¿¹¾à½Ã½ºÅÛ */
/* ·¹°í º¹¿ø ÀÛ¾÷ */
//1788901
/* ¾ÏÈ£´Â ¾Ïȣȴ٠-> ¾ÏÈ£¸¦ ¸ð¸£¸é °ü¸®ÀÚµµ ¸ð¸£±â ¶§¹®¿¡ º¯°æÇØ¾ß ÇÑ´Ù. */
System.out.println("Á¶°Ç¹®");
//Çâ»óµÈ for¹® p.166
for(String[] mem : member){
if (id.equals(mem[0]) && passwd.equals(mem[1])){
System.out.println("·Î±×ÀÎ ¼º°ø");
}else{
System.out.println("¾ÆÀ̵ð ¶Ç´Â ºñ¹Ð¹øÈ£¸¦ È®ÀÎÇØÁÖ¼¼¿ä");
}
}
}
}
IT ±âº» ±³À°
p946
Ŭ¶óÀ̾ðÆ®(pc)¿Í ¼¹ö(À¥,ftp)¿¡ ´ëÇÑ °³³ä
file transfer protocol
<IP¿Í µµ¸ÞÀο¡ ´ëÇÑ °³³ä>
µµ¸ÞÀÎ : jslweb.izerone.co.kr
IP : 125.242.95.11 -> 200.200.200.2
<¼¹ö ±âº» ¼³Á¤°ª>
IP : 125.242.95.11
Subnet Mask : 255.0.0.0
Default Gateway
DNS Server
<¼¹ö ±âº» ¼³Á¤°ª>
IP : 100.100.100.1 / 200.200.200.1 / 300.300.300.1
Subnet Mask : 255.0.0.0 / 255.255.255.0 / invalid
* ÃÖ¼Ò°ª(0)~ÃÖ´ë°ª(255) ÃÑ256°³
-256°³ Áß¿¡ ¾µ ¼ö ÀÖ´Â °ÍÀÌ ÀÖ°í, ¾ø´Â °ÍÀÌ ÀÖ´Ù.
-ipconfig ³» ÁÖ¼Ò È®ÀÎ
-nslookup jslweb.izerone.co.kr ÀÇ ÁÖ¼Ò Ã£±â
-ping ÄÄÇ»ÅÍ°¡ »ì¾Æ ÀÖ´ÂÁö Á×¾îÀÖ´ÂÁö »ìÆ캸´Â ¸í·É¾î
Default Gateway
DNS Server
µµ¸ÞÀÎ ¼¹öÀÇ Á߿伺
¼¹öÀÇ ¼ºñ½º
Æ÷Æ®
¼ÒÄÏ
ÇÁ·ÎÅäÄÝ(tcp, udp)