Forum: Java Feb 25th, 2008 |
| Replies: 4 Views: 1,188 i think .jar will be good option |
Forum: Java Feb 25th, 2008 |
| Replies: 12 Views: 1,407 use array to store the result, and at last show the result. |
Forum: Java Feb 19th, 2008 |
| Replies: 13 Views: 1,257 dont use loop for it,
you can do the same job with pattern (http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html#field_summary)
or regular expression... |
Forum: Java Feb 15th, 2008 |
| Replies: 4 Views: 2,519 run server socket in separate thread. |
Forum: Java Feb 15th, 2008 |
| Replies: 5 Views: 988 for 2nd:
for(int j=0; j< 2*triangleSize+1; j++)
{
int i=j;
if(j>triangleSize)
i=2*triangleSize-(j+1);
for (int k=0; k<i; k++) |
Forum: Java Feb 15th, 2008 |
| Replies: 5 Views: 988 for 1st:
use quitYesNo.compareToIgnoreCase("q");
see the doc (http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html) |
Forum: Java Feb 14th, 2008 |
| Replies: 5 Views: 9,565 use:
boolean b;
int iSomeValue;
b=true;
if(iSomeValue==0)b=false;
or use function |