JAVAÇó2¸öÊýµÄ×î´ó¹«Ô¼ÊýºÍ×îС¹«±¶Êý
//ÇóÁ½ÊýµÄ×î´ó¹«Ô¼ÊýºÍ×îС¹«±¶Êý
import java.util.*;
public class Dais02
{
public static void main(String args[])
{
int m,n;
Scanner s = new Scanner(System.in);
System.out.println("ÇëÊäÈëÄãÏëÒªÊÇÊý×Ö");
m = s.nextInt();
n = s.nextInt();
int total,r;
total = m*n;
do
{
if(m<n)
{
int t = m ;
m = n ;
n = t ;
}
r = m % n;
m = n ;
n = r ;
}while(r!=0);
System.out.println("×î´ó¹«ÒòÊýÊÇ£º"+m);
System.out.println("×îС¹«±¶ÊÇ£º"+total/m);
}
}
Ïà¹ØÎĵµ£º
ÎÒ²»ÖªµÀÕâÆªÎÄÕµÄ×÷ÕßÊÇË£¬µ«ÎÒÖªµÀ£¬Ëû¶ÔjavaÓÐÒ»ÖÖºÜÉîµÄÀí½â£¬ÆäʵÎÄÕÂÖв¢Ã»ÓÐÌåÏÖ³ö×÷Õß¶Ôjava¼¼ÊõÉî²ãÀí½â£¬µ«ÊÇ´ÓÎÄÖеÄÿһ¾ä»°ÖУ¬ÎÒ¸ÐÊܵ½ÁËһЩ¶«Î÷¡£ÕâÊÇһƪºÜºÃµÄÎÄÕ£¬Ò²¿ÉÒÔ°ïÖúºÜ¶àÈËÃÔãµÄÈ˽â¾öÎÊÌâ¡£´øÀ´ºÍ´ó¼Ò·ÖÏíһϡ£
ǰ²»¾ÃCSDN¿¯µÇÁËһƪ¡¶CÓïÑÔÒѾËÀÁË¡·µÄÎÄÕ£¬ÒýÆðÁËһЩÕùÂÛ¡£ÆäʵÄÇÆ ......
Java±éÀúÎļþ¼ÐµÄ2ÖÖ·½·¨£º
A.²»Ê¹Óõݹ飺
import java.io.File;
import java.util.LinkedList;
public class FileSystem {
public static void main(String[] args) {
long a = System.currentTimeMillis();
LinkedList list = new LinkedList();
File dir = new File("c:\\java\\ ......
java¼¯ºÏ¿ò¼Üͼ¼°½éÉÜ
¼ò»¯Í¼£º
Javaƽ̨ÌṩÁËÒ»¸öÈ«Ðµļ¯ºÏ¿ò¼Ü¡£“¼¯ºÏ¿ò¼Ü”Ö÷ÒªÓÉÒ»×éÓÃÀ´²Ù×÷¶ÔÏóµÄ½Ó¿Ú×é³É¡£²»Í¬½Ó¿ÚÃèÊöÒ»×鲻ͬÊý¾ÝÀàÐÍ¡£
Java 2¼¯ºÏ¿ò¼Üͼ
¼¯ºÏ½Ó¿Ú£º6¸ö½Ó¿Ú£¨¶ÌÐéÏß±íʾ£©£¬±íʾ²»Í¬¼¯ºÏÀàÐÍ£¬ÊǼ¯ºÏ¿ò¼ÜµÄ»ù´¡¡£
³éÏóÀࣺ5¸ö³éÏóÀࣨ³¤ÐéÏß±íʾ£©£¬¶Ô¼¯ºÏ½Ó¿ÚµÄ²¿·ÖʵÏÖ¡£ ......
JavaʼþÄ£ÐÍÓëAndroidʼþÄ£Ð͵ıȽÏ
±È½Ï½á¹û£ºAndroid½è¼øÁËJava2ÖеÄUIʼþ´¦Àí»úÖÆ£¬µ«ÊÇ£¬AndroidÓÖÌṩÁËÁíÒ»ÖÖʼþ處ÀíÆ÷£¨event handler£©£¬¶øÕâ¸ö·½Ê½ÊÇ·ñÓëjava1.0ʼþÄ£ÐÍÒ»ÑùÄØ£¬ÓдýÇóÖ¤¡£
JavaʼþÄ£ÐÍ£º
ÎÒÃǰÑJDK1.0ʼþ´¦ÀíÄ£ÐͳÉΪJava1.0ʼþÄ£ÐÍ£¬¶ø´Ójdk1.1ºóµÄ°æ±¾Ê¼þ´¦ÀíÄ£ÐͳÆÎªJava 2Ê ......
²»ÄÜºÃ¸ßæðÔ¶£¬´ÓдС³ÌÐò¿ªÊ¼¡£
Ò»¸öû¸ôN·ÖÖÓ¾ÍÌáÐÑÐÝϢһϵÄС³ÌÐò£¬àÅ£¬»¹Ö»ÊÇÒ»¸öͦ¼òªµÄ¶«Î÷£¬¶øÇÒ»¹·¢ÏÖÒ»µãÏÖÔÚÎÒÎÞ·¨½â¾öµÄbug¡£
/**
* ÐÝÏ¢ÌáÐÑС³ÌÐò
* ´æÔÚÎÊÌâÊÇ£ºµ¥»÷ʱ£¨²»·Ö×ó»÷ÓÒ»÷£©£¬Í¬Ê±»áÔÚÈÎÎñÀ¸³öÏÖ³ÌÐò£¨ÒòΪÕâ¸öÍÐÅ̹¦ÄÜÊDzο¼ÍøÉÏÀý³Ì
* дµÄ£¬²»ÖªµÀ¸ÃÈçºÎ±ÜÃâÕâ¸öÎÊÌ⣩£»
* Èç ......