in my opinion, SUN's jswdk is simpler jsp/servlet server ,you can download from java.sun.com , It worked well under winXP ------- Robbies ----------------------------- 1.java IDE tool : JawaBeginer 2.Java Jar tool : JavaJar http://www.pivotonic.com
think in java~~!! the most valuable to read --- Robbies ----------------------------- 1.java IDE tool : JawaBeginer 2.Java Jar tool : JavaJar http://www.pivotonic.com
String [] s=args[] //it's wrong~~ String [] s=arg; //that didnt copy Array arg to s i prefer to use a loop to copy element from one array to another --- Robbies ----------------------------- 1.java IDE tool : JawaBeginer 2.Java Jar tool : JavaJar http://www.pivotonic.com
thank u,Jim Yingst i got it~~ StringBuffer is not a consistant container~~ the length of the StringBuffer can change after it was initialized.. i guess java compiler prevent you doing such comparing ---- Robbies ----------------------------- 1.java IDE tool : JawaBeginer 2.Java Jar tool : JavaJar http://www.pivotonic.com
float x=1; it is ok int x=1.0f; cant happen Robbies ----------------------------- 1.java IDE tool : JawaBeginer 2.Java Jar tool : JavaJar http://www.pivotonic.com
i agree with your friend. only method overriding comes under polymorphism you can use one kind of object perform differrent Action by invoking same Function!!! so that must be OVERRIDE! ---- Robbies ----------------------------- 1.java IDE tool : JawaBeginer 2.Java Jar tool : JavaJar http://www.pivotonic.com
System.out is a standard output device~ like ostream::cout in C++ ,output the result command line of console --- Robbies ----------------------------- 1.java IDE tool : JawaBeginer 2.Java Jar tool : JavaJar http://www.pivotonic.com
class RobinWood is-a base class It's override the getValue() method in the base class .when invoking ,somthing occur~~ such mechanism is called polymorphysm --- Robbies ----------------------------- 1.java IDE tool : JawaBeginer 2.Java Jar tool : JavaJar http://www.pivotonic.com
in your example : 101%n=2 so 101=q*n+2 we have q*n=99 so n is the factor of 99 implementation : for(int i=1;i<=99;i++) if((99/i)==0){ n=i; System.out.println("n is : "+n); } } -- Robbies ----------------------------- 1.java IDE tool : JawaBeginer 2.Java Jar tool : JavaJar http://www.pivotonic.com