Interface and Inheritance problem!!

2458 byte By saipkgirla at 2007-9-29 4:57:11
First I start a project called Person which contain a person's name, SINnumber and year of birthimport java.io.*;public class Person implements Create{ String name, sin; int year; public void Person(String inName, String inSin, int inYear){ name = inName; sin = inSin; year = inYear; } public ...

src-directory for JDK 1.4.2

168 byte By Nitzer_Ebba at 2007-9-29 4:59:15
Does anyone know from where I can download the src-directory for JDK 1.4.2 ? I downloaded JDK 1.4.2 from the javasoft.com and got all directorys except that one.

How to Generate a Unique Number

192 byte By b34nt0wna at 2007-9-29 5:01:08
Can anyone help me with a specific method to generate 5000 unique alphanumeric ID's that do not contain I(i)'s or O(o)'s? Any assistance would be much appreciated. Thanks.Beau

Can I read words from a file in java?

382 byte By grandhirsa at 2007-9-29 5:02:12
Hi,I need help regarding files.I have a file with some text in it(say file 1). I need to replace some particular words in the text(file 1) with the words synonyms which are in another file(file 2). I need to write the text after replacing it with its synonyms into a new file. Can anyone suggest ...

compressing 2 nibbles

579 byte By asdf20012001a at 2007-9-29 5:03:09
I am having the following problem:I need to convert 3 digit account number (say 123) in following way:1) convert each character into hex: ie, 1 --> 312--> 323 --> 33I used-- Integer.toHexString("123".getBytes)2) convert to nibbleie., 31 --> 132 --> 233 --> 3I used- char c = ...

Help for java I/O

397 byte By Woodgatea at 2007-9-29 5:04:37
I have question about this::BufferedInputStream bfr1=new BuffereInputStream (new File InputSteream(f1),1024);note:: f1 is the file namebye cbuf=new byte [1024]bfr1.read (cbuf,0,54);bfr1.read (cbuf,0,40);This bfr1.read execute for sequent as above, So the bfr1 will totally read for 94 byte of ...

java.lang.IllegalArgumentException: n must be positive

190 byte By him_shaha at 2007-9-29 5:09:11
java.lang.IllegalArgumentException: n must be positivewhile iterating wihin a for-loop i come across this problem !Please help. Thanks in advance.~himanshu

java.lang.IllegalArgumentException: n must be positive

236 byte By him_shaha at 2007-9-29 5:09:12
java.lang.IllegalArgumentException: n must be positivewhile iterating wihin a for-loop i come across this problem !there's no variable by "n" in my code.Please help. Thanks in advance.~himanshu

Urgent:swing with windows 98

104 byte By daisy2000a at 2007-9-29 5:13:04
Im using Java 1.1.8 version in windows 98.Pgm in Swing compiles.But not running.What shoud I do?

ahh! NoClassDef on helloWorld. how?

1524 byte By kevinherringa at 2007-9-29 5:14:24
righty then. i have made some changes to my java configuration recently (trying to get jai to work) and now i have broken it. bugger.i have the simplest of simple HelloWorld application:public class HelloWorld{public HelloWorld(){System.out.println("hello world");}public static void ...

Java I/O question

182 byte By Woodgatea at 2007-9-29 5:23:09
InputStream input=new BufferedInputStream(new FileInputStream(file),16384);What does it mean for this statementWhat does it mean for 16384? is it byte or in bit?

HTTP Response Code 403

577 byte By nfalcka at 2007-9-29 5:23:50
Hi. I'm working on writing a super-lightweight web browser. It seems to work on most sites, and eventually I got forms to work and everything. When I try to access certain sites, however, such as " http://www.google.com/search?q=Hello+doc", I get an HTTP Response Code 403. These sites are fine ...

which is the best platform for Java

438 byte By LiWei.Suna at 2007-9-29 5:25:06
Generally speaking,There's JDK on Linux,Windows And Solaris. And I wondered which is the best platform for JDK.It's seems that hotspot JVM can run better on Solaris than other two. two pc-servers,both have 1 GB memory and one P4 CPU,one is Linux and the other is Solaris 8(x86 version),both ...

To convert object to string

66 byte By rama_s_77a at 2007-9-29 5:25:11
How can i convert object to string using toString() method.

File Locking!!! Is this a BUG or there is something wrong in my code.

3572 byte By gugleha at 2007-9-29 5:27:41
In new JDK v 1.4. new means of file locking are introuced, and it seems it is a little bit buggy yet (or maybe this one isn't a one). though it's better than nothing :)here is 2 classes. first locks a file, the second attemts to change it.import java.io.*;import java.nio.*;import ...

Desperate need help....:-\

358 byte By mrac97a at 2007-9-29 5:28:15
Hi everybody,I'm really desperate and frustrated...I still haven't found a code that manipulates the modem. I need and example code where a callis generated by modem and then the modem sends and receives information.Please I will really appreciate any help you could give me, I am really tight ...

Grep Equivalent in Java

238 byte By settyravi93a at 2007-9-29 5:33:26
Hi All,Is there is anything in Java which is equiavalent to grep in UNIX.grep -i "internal web documentation" c:/javaI need this very badly.Any suggestions are highly appreciated.Thanksravi

Copy and Move file

1772 byte By lpezeta at 2007-9-29 5:34:17
Hi all,I try to copy files from folder to another. Then, I move these copies to another folder.Sometimes it fails...sometimes not.Here is the snippet :public static void main(String[] aArgs) {String oSourceFilename = "test.xml";String oDestinationFilename = "temp/test.xml";String oMoveFilename ...

Java network socket programing

214 byte By Woodgatea at 2007-9-29 5:34:26
What the mean for thegetIsTransvering?and also what the mean for:mClientConnection.getIsTransvering() synchronized (mClientConnection) {mClientConnection.notify(); }

J2SSH and IOException

1065 byte By Nitzer_Ebba at 2007-9-29 5:40:32
When I run the following code I get this errormessage when I run thesftp.openDirectory("test"); line(and yes the directory exists :=))java.io.IOException: The ChannelOutputStream is closed!Can anybody see why ?// StartSshClient ssh = new SshClient( );int port = 22;String hostname = ...

get RAM in Windows

292 byte By Dennis21a at 2007-9-29 5:40:58
Hi and many thanks.I am trying to find a way to get the RAM that a windows machine has but so far all I know is that there is not a way of doing this without using platform dependend commands.Can you please suggest a way of implementing this?Many thanks,DK

Zip : problem with read method in Zip齨putStream

1156 byte By cedric_92a at 2007-9-29 5:42:26
Hello,I have a probleme when i try to read in my zip file...The file is good and i have completly my data but when i try to read them, for some files it's ok but for others not :(My data are crypted with the AES_ENCRYPT method of mySQL and stored in a binary files...It seem to be an invalid ...

[HTML Headers] 2 Cookies Missing when reading Headers?

6086 byte By ob_teka at 2007-9-29 5:45:30
Hi,Here is a sample that stunts me.It connects to a web page and should retrieve all cookies that are necessary to crawl other webpages from this website.However, it doesn't retrieve "sessionid" and "partnerid".Why please?/* * HtmlAvecCookie.java * * Created on 22 juillet 2003, 01:36 */ import ...

How to deal with exceptions

648 byte By Zeta31a at 2007-9-29 5:50:09
Hi, I was wondering if anyone could maybe tell me the java "convention" for throwing exceptions. I have this method that uses three different variables: a test type (String), the text (String) and a number. They can only choose from 3 different tests, so if for some reason they type a name of a ...

Prefences Class

93 byte By LordCyb3Ra at 2007-9-29 5:50:50
Hello...I need examples of Preferences class. Where can I get it.Thanks.

Applet not inited: Mainclass$InnerClass not found

1132 byte By timster1a at 2007-9-29 5:54:51
Hi everybody, i am really running out of ideas, so any help would be great:I have an applet with two inner classes:the first is just an array of attributes and does not extend any superclass.the second is a painting area which exteds java.swin.jTextArea.both are inner classes in my applet.at ...

Help creating a JAR File

445 byte By freiburgIdentitya at 2007-9-29 5:58:35
I ve been trying to create a jar file, but dont get any results. The directory structure is as follows:./resources //some images./classes/scribble1/ //the class files.from in the code I do the following to get to the images:File f = new File("../resources/nameoftheimage");...Inside the classes ...

Choosing the initial component in a Window

184 byte By kilsw5a at 2007-9-29 6:30:12
Hi there,:. Is there a simple way of setting the initial component in container without modifying the default order focus traversal policy?Many thanks.Roque

Need Help Urgently

199 byte By liangX2a at 2007-9-29 6:39:44
Hi I'm newbie in Java. Currently i'm doing a program which read a String of formulae e.g. "10*(5+90)-50" then the program would do the calculation. How do i do that? anyone can help? Thankx

How to display a Calendarvalue in a JTable

230 byte By ghbloosa at 2007-9-29 6:41:56
I have loaded Calendar (GregorianCalendar) values in a jTable with the AbstractTableModel Class. The values show as long strings, and not a format like "june 10, 2003" (or likewise). How do I format the Column?Gaston

sockets

291 byte By drankrua at 2007-9-29 6:42:21
I developed a client/server application and data is successfully transferred correctly.now i want that whatever is typed or drawn on server it should be simultaneously written or drawn on client.can i get the code for it from somewhere. I am using a JTextPane.thanks in advance

save password encrypted?

202 byte By javakilltora at 2007-9-29 6:43:46
how can i save password text in database in the encrypted form. is there any java function doing this and permit to get from the encrypted text the clear text?thank u very much in advance

Adding to date

269 byte By thesonofdada at 2007-9-29 6:48:40
Hello all,my problem is that i have a date in milliseconds and i want to add 12 months to that date, but i do not want to use (60*60*etc...) to get how many milliseconds in twelve months. i want to use the calendar object to add twelve months to the date.

Any way of getting File creation date?

220 byte By hsajjada at 2007-9-29 6:49:30
Hi,Does any one know how to get the creation date of a file?There's a method:public long lastModified() in java.io.File class. Any way of getting creation date!rgdsHassan

client server file io

522 byte By mstodda at 2007-9-29 7:01:01
I wrote a database server for use on my network at work. People can use the client I wrote with it to get files since they have read access to the files on the server. The current client makes a direct connection with the machine holding the files, and the server I wrote is totally oblivious. ...

FIleUploading on server side using Sockets

13493 byte By jyoti_s_ina at 2007-9-29 7:03:49
Hello frens.I'm trying to upload a file on the server from clients local machine.I'm havin the following probs when i execute the java files for file uploading on server side from clients local disk.1)If i upload a file and then click the same file for uploading on the server side it doesnt ...

switch case

151 byte By itamar_lev_1a at 2007-9-29 7:16:53
when I want to use the switch case on a String,what do I do ?I don't want to use if else 20 times.thanks,Itamar Lev

How can I force HttpURLConnection to refetch a URL, ignoring the cache?

1356 byte By maitreya_ra at 2007-9-29 7:18:41
I'm trying to implement a program that monitors a set of URLs to check their status and reports its results to another module.I'm doing this by fetching the contents of each of these URLs in turn using HttpURLConnection. I check for any exceptions and the HttpUrlConnection.getResponseCode() ...

threading doubt

209 byte By Documentationa at 2007-9-29 7:28:49
Sir, i have a small doubt in multithreading,My program is compling but if i run the error is"Exception in thread main java.land no such method Error: main.Kindly rectify the problem

providing a link to a webpage from within the applet

358 byte By vibhor_1984a at 2007-9-29 7:31:51
hi everybody,i have a an applet at the moment. in this applet i want to provide a link to a webpage in the form of a menu option. that is i want to have a menu item in the menu bar by clicking on which the respective webpage is opened up in a web browser. i would be very thankful to you if you ...

HELP ! voice recognition in Java

292 byte By bowlkhina at 2007-9-29 7:32:14
hello all !i need ur help to find some references about voice recognition in java.i wanna code a program to change word into sound ( voice ). i don't know where to study to code a program to transform word into sound ... hic hic help me ... danke ... a, thanks :)

service/protocol connectivity

246 byte By vipersan2a at 2007-9-29 7:33:17
Hi,I need to connect to a certain computer and detect what services are available(i.e http,https,ftp,snmp,telnet etc...!How am i to go about writing this program...any help would be sincerely appreciated.Thanks.

Thread, Timers & Sinchronyzed code

1703 byte By buchiruiza at 2007-9-29 7:33:35
Hi all!!I'm developing an application that involves threading, sockets, and synchronized pieces of code.The application starts two threads, and each one, starts a timer. When the Timer expires (there is a timer per thread), the application must insert some values on a vector, but as this ...

Associate Icon with file

350 byte By Phife419a at 2007-9-29 7:40:28
Hello Every one, I need some help here. I have just developed an Editor, and I want to know how to associate the files created with the editor with my icon. And secondly, when the file is double click on the desktop or anywhere in the computer, the file should open up with my editor. I really ...

Java & Perl

414 byte By BogStandarda at 2007-9-29 7:40:32
I have just made a simple webserver in java and I am know trying to get it to work with perl files. I call Perl.exe and manage to get the correct response when the browser only asks for "blah.pl" but I dont know how to pass it parameters so that when "blah.pl?board=;action=register;" is sent i ...

Please Help, POI and Excel

3280 byte By zhanngola at 2007-9-29 7:41:20
Hello,I am trying to read and write to an Excel file via my Java applet. I have done so successfully on several simple Excel files that simply had data cells without many complicated equations or any other Excel extras. However, now is the time to get the complicated ones to work. I didn't ...

Regular Expression

161 byte By jerome21a at 2007-9-29 7:49:47
Is there any way to use reg. Ex. using jdk 1.3. Or a workaround.At the moment I am comparing substrings, but that is very slow.Thanks Jerome

What is the use of radix in integral types?

385 byte By tumstera at 2007-9-29 8:02:45
I would like to understand how does these methods work. What puzzles me is values that I get back from the method given different value of the radix either than 10:byte b = Byte.parseByte(String s, int radix)int i = Integer.parseInt(String s, int radix)float f = Float.parseFloat(String s, int ...

references for coding the cellphone's sofware

126 byte By bowlkhina at 2007-9-29 8:05:20
hallo allwho know references for coding cellphone's sofware .... plz show me ... :(thanks for ur helping

stack overflow error

164 byte By Techrollaa at 2007-9-29 8:22:39
How can I keep from getting java.lang.StackOverflowError with a large application? I dont see how mine doesnt work but even bigger ones run fine. Please help