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 ...
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.
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
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 ...
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 = ...
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 positivewhile iterating wihin a for-loop i come across this problem !Please help. Thanks in advance.~himanshu
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
Im using Java 1.1.8 version in windows 98.Pgm in Swing compiles.But not running.What shoud I do?
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 ...
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?
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 ...
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 ...
How can i convert object to string using toString() method.
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 ...
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 ...
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
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 ...
What the mean for thegetIsTransvering?and also what the mean for:mClientConnection.getIsTransvering() synchronized (mClientConnection) {mClientConnection.notify(); }
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 = ...
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
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 ...
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 ...
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 ...
Hello...I need examples of Preferences class. Where can I get it.Thanks.
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 ...
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 ...
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
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
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
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
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
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.
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
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. ...
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 ...
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
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() ...
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
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 ...
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 :)
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.
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 ...
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 ...
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 ...
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 ...
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
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 ...
hallo allwho know references for coding cellphone's sofware .... plz show me ... :(thanks for ur helping
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