Forum: Java Aug 27th, 2009 |
| Replies: 4 Views: 254 Well is it a kinda of config we have to do to establish the connection.
I thought there wasnt any thing else to do |
Forum: Java Aug 25th, 2009 |
| Replies: 4 Views: 254 i have installed mysql , and JDK . I wrote the following code to test jdbc . But it didnt work
public class Test {
public static void main(String[] args) {
try {
... |
Forum: Java Aug 18th, 2009 |
| Replies: 4 Views: 345 well since i use netbeans IDE , whenever i mention any of the keywords belonging to java cryptography , they give a syntax error .
But the above code mentioned is working perfectly fine .... |
Forum: Java Aug 11th, 2009 |
| Replies: 4 Views: 345 I am trying to build an application using JAVA.
Well the application is more like encrypting the message and communicating over a medium.(wired netowork/wireless)
so i came across the JCE (java... |
Forum: Java Aug 10th, 2009 |
| Replies: 4 Views: 345 there are many key words in java cryptography and none of them is been recognized in my system.
Is there any way i can implement java cryptography...? |
Forum: Java Apr 30th, 2009 |
| Replies: 2 Views: 281 hi everyone , i am trying to access image files in java and then want to modify those bits present in the image . is there any standard package or utility which would help me to do that ...?
i... |
Forum: Java Apr 13th, 2009 |
| Replies: 9 Views: 859 well actually i used to convert all of my code in an applet form and work. but if u completely wanna run java application using html then try the underneath link .
http://www.java2html.com/
it... |
Forum: Java Apr 11th, 2009 |
| Replies: 9 Views: 859 well in ur java program u will have to write the following
/* <applet code = "filename" height = 300 width = 300 >
</applet code> */
it should be written after the packages you import... |
Forum: Java Apr 8th, 2009 |
| Replies: 15 Views: 1,185 well i can directly give him the code , great deal . but wats the point he wont learn anything by that . at least by giving him the recursion one i have made is job easier to think . all that he has... |
Forum: Java Apr 6th, 2009 |
| Replies: 24 Views: 1,386 well if ur a neophyte into this then the oly thing i recommend is ti do the program from basic
1. using char array . later on you can re do the same thing with utmost sophistication . sometimes... |
Forum: Java Apr 5th, 2009 |
| Replies: 24 Views: 1,386 wat is "text" here , i mean wat does it hold .
besides u could have been a little more explicit in mentioning about your code .
as far as i guess from this its a mismatch between string and char... |
Forum: Java Apr 4th, 2009 |
| Replies: 24 Views: 1,386 well i doubt that u can do that simultaneously . well if u want to find a particular character and then replace or replace at particular position .
1. input the string
string s = new string... |
Forum: Java Apr 4th, 2009 |
| Replies: 15 Views: 1,185 ok pal i forgot to add etc etc in previous post . |
Forum: Java Apr 4th, 2009 |
| Replies: 15 Views: 1,185 well integers in java can hold a lot bigger values than that infact if i am not wrong its even bigger than the one allocated in c/c++.
well if u still want bigger values then try using float or... |
Forum: Java Apr 4th, 2009 |
| Replies: 11 Views: 1,401 well i follow the approach of analysis and then design and finally robustness of the code . that makes things easier . and skipping these basic fundamentals will create a lot of confusion n... |
Forum: Java Apr 4th, 2009 |
| Replies: 15 Views: 1,185 all you can do it to solve using a recursive manner
int fact(int n)
{
if(n==1)
return 1;
else
return (n*fact(n-1));
} |
Forum: Java Apr 4th, 2009 |
| Replies: 11 Views: 1,401 yes i have ran it and it works fine .
thanks for improving my code .well i knew it could also have been done in a shorter way than i did , its just that i wanted to be very comfortable with wat i... |
Forum: Java Apr 4th, 2009 |
| Replies: 10 Views: 835 by come out of loop i meant the if condition wont execute
if( i %j ! = 0 )
a.add(i);
if none of the nos are divisible other than itself and one its a prime no
i.e if the "if condition"... |
Forum: Java Apr 4th, 2009 |
| Replies: 10 Views: 835 Well u have understood me wrongly......
at the frist place i have checked the program and it works fine .
for 9 it will check 9 % 3 which is very much divisible . thus it will come out the loop... |
Forum: Java Apr 4th, 2009 |
| Replies: 11 Views: 1,401 yeah finally got it ... i have checked it (but not rigorously ) and its working .
public class NewClass {
public static void main (String [] args)
{
String str1 = new String("madame");... |
Forum: Java Apr 4th, 2009 |
| Replies: 10 Views: 835 Well thats the most lousy way of programming . why take a 5 mile road to reach ur neighborhood . |
Forum: Java Apr 4th, 2009 |
| Replies: 10 Views: 835 Well , i didnt think of run time at the first place , i just thought of logic . but instead of checking for Math.sqrt() u can actually check till "i/2" in the "j" iteration loop , i guess that will... |
Forum: Java Apr 4th, 2009 |
| Replies: 10 Views: 835 Well prime nos re those which are divisible by 1 or by themsleves only.
Well ur code should be something like this
assuming the range to be like 100 .
ArrayList<Integer> a = new... |
Forum: Java Mar 23rd, 2009 |
| Replies: 0 Views: 351 Well i intended to develop a sohisticated java server client program . but just couldnt push myself so far so ust had to satisfy myself with it.
Well , i have created a simple chatting interface .... |
Forum: Java Mar 23rd, 2009 |
| Replies: 2 Views: 2,258 Well , i have created a simple chatting interface . i would not call it a chatting interface actually cuz i had something else in my mind and finally landed on something else .
i would like if you... |