Nyoj 73 ratio [java large number], large number of nyoj
Java.
Code:
import java.util.Scanner;import java.math.*;public class Main{public static void main(String[] args){Scanner cin = new Scanner(System.in);BigInteger a, b;BigInteger t = BigInteger.valueOf(0);a = cin.nextBigInteger();b = cin.nextBigInteger();while(!(a.equals(t)&&b.equals(t))){if(a.equals(b)){System.out.println("a==b");}else if(a.compareTo(b)>0){System.out.println("a>b");}else System.out.println("a<b");a = cin.nextBigInteger();b = cin.nextBigInteger();}}}
Question link: http://acm.nyist.net/JudgeOnline/problem.php? Pid = 73
JavalangNullPointerException at comcndaoCustomerDaoqueryConnection (mermerdaojava: 73)
The try statement should contain con = XXXX. getConnection?
This. setConnection () Is this a value assignment? If it is not because
The con object has no initialization value. This object is actually null during the call, so a null pointer exception is reported.
Java Bluetooth Three Kingdoms Kill 173
Does it have to be Bluetooth? Now there are JAVA in the Three Kingdoms, so you can go to the official website to see if my mobile phone is a JAVA touch screen on the official website.