32,204 Topics

Member Avatar for
Member Avatar for Primo

[I]You are to run a series of trials. For each trial you will pick a random number between 1 and . Call this number . You will run tests with this number . For each test you will pick a second random number between 1 and ; call this second …

Member Avatar for masijade
0
124
Member Avatar for vineelap84

Hiiiiiii everyone....... iam learning java newly......... so i have doubt in writing this pgm can anyone pls tell me out......... "can we write a java program which calls the command prompt" byeeee vineela.........

Member Avatar for vineelap84
0
86
Member Avatar for parthiban

Hi folks , I'm new to j2ee programming and using Netbeans 5.5 , i created a session bean program and deployed successfully in JOnAS application server but i'm not able to run the client program which invokes session bean (EJB module ). when i run client program i'm getting the …

Member Avatar for jwenting
0
215
Member Avatar for spacecowboy123

When I try to cast an object of NetworkObject class (a class I have created )that has arrived at a server from a client I get an error - java.lang.ClassNotFoundException... client.NetworkObject I have the class in a Server package, but why does it specify that client.NetworkObject is not found, and …

Member Avatar for jwenting
0
91
Member Avatar for volscolts16

I have left out something here or done something wrong?? Background: We are supposed to implement a class ExpApproximator. It uses the power series and keep adding values until a summand (term) is less than a certain threshold. At each step, you need to compute the new term and add …

Member Avatar for jwenting
0
124
Member Avatar for ronpar123

Hi, i am trying to persist the session of my application. i have several complex objects, some of which may not be implementing serializable. i have started with retrieving the session and for each attribute in the session i generate an xml. the problem occurs when i try to convert …

0
50
Member Avatar for mengani123

please helpme to write a funtion in java. write a functionto validate ip address from a given string. using string tokenizer. ex:- 192.160.1.5 please send me the code. sanjay

Member Avatar for masijade
0
238
Member Avatar for rpjanaka

Hi all, I want to set an integer variable that is begins with 0 (ex: 01, 055 etc). So I don’t want to use strings here, because I want to use this values as mathematical values.. What is the data type that i have to use here..? So please anyone …

Member Avatar for masijade
0
4K
Member Avatar for Venks

I just want to disable the copy option for a file... Is it possible to make it like tht.....

Member Avatar for kashko
0
98
Member Avatar for rbinc

I have the following lines of code for an assignment. What I don't understand is why, when I uncomment the first few println's before the user prompt in main, the input taken from the function readint seems to capture the first println and not what the user types in. If …

Member Avatar for rbinc
0
180
Member Avatar for Bamaman37

Hi, I'm working on a project, but I am lost in this class. I'm taking this distant ed Java class, I work 50 hours a week, and I live 2 hours from the school. Needless to say, I can never get in touch with the teacher. Anyways, I'm trying to …

Member Avatar for Bamaman37
0
108
Member Avatar for volscolts16

I keep getting cannot find symbol variable i, when I run?? Also I have another posting that is up, how do I mark it as solved??? Here is the dilemma: /** Program to compute the first integral power to which 2 can be raised that is greater than that multiple …

Member Avatar for peter_budo
0
86
Member Avatar for jan1024188

Hi, I am new to Java. Id like to know if I can use system commands in Java applications. Thanks in advance, Jan

Member Avatar for Infarction
0
236
Member Avatar for bigal_bigal

Dear , I have a assignmnet due on tuesday and i have 3 midterms right back to back on monday and tuesday and i don't have time to finish it. I'll include the assignmnet here and would appreciate if somebody can do it for me please. Assignment Goals: 1. Practice …

Member Avatar for jwenting
0
138
Member Avatar for jan1024188

Which book would you recommend for a Java newbie? Perheps this one? [url]http://www.amazon.com/Java-Programming-Absolute-Beginner/dp/0761535225/sr=8-2/qid=1172349683/ref=pd_bbs_sr_2/002-1477243-8540045?ie=UTF8&s=books[/url]

Member Avatar for jan1024188
0
121
Member Avatar for volscolts16

This is a lab project we are working on, and I am at a standstill. I am in a beginner Computer Science course, for background purposes, so please don't get too technical. Any help would be greatly appreciated. Thanks [COLOR=#000000]1. [/COLOR][COLOR=#000000]A variable that counts the iterations of a loop is …

Member Avatar for volscolts16
0
257
Member Avatar for singhaldpk

Hi I am a new comer in JAVA environment.. n willin 2 do a project.. can u suggest me sm gud idea (dt 'll involve n/w technology also).. i m in need of it urgently...

Member Avatar for jwenting
0
70
Member Avatar for vinod_javas

what do i do for hiding the close button in frame.... for diabling i hav used this one.. JFrame.DO_NOTHING_ON_CLOSE its working fine... but i just want to hide the close button ..... pls help me out...

Member Avatar for jwenting
0
85
Member Avatar for Prajijithesh
Member Avatar for livingsword

i have tried to create an applet to just play sound, no buttons or controls. The sound should start playing as soon as the applet starts. But the sound doesnt come. There r no compile-time or run-time error, i've even created the correct policy for Audio Permissions but still no …

Member Avatar for peter_budo
1
120
Member Avatar for mengani123

write a sample code to create singleton class using java. ensure that only one instance will be creted and same will be returned always. please do it. sanjay

Member Avatar for peter_budo
0
122
Member Avatar for livingsword

this is the code that i managed to write after reading for a while. [code] CubicCurve2D cubic = new CubicCurve2D.Double (20.0, 200.0, 200.0,270.0, 30.0,30.0, 250.0, 170); Graphics2D g2 = (Graphics2D) g; g2.draw(cubic); [/code] and this is the output, [IMG]http://img221.imageshack.us/img221/7728/exampletr0.png[/IMG] Now, like u have seen , everything works fine, i get …

Member Avatar for livingsword
0
141
Member Avatar for alba07

I am supposed to do a sliding target class, then make a shooter class that shoots up three balls when the user clicks. I think I have the first two classes done, but I am stuck on the class that has three balls to shoot at the target. These have …

0
59
Member Avatar for vaniprahalathan

hi friends, i am doing one project ....in that i have one problem ..if anybody know that how to use popup menu (cut,copy,paste,delete)in textfield means pls help immediately ...... regards, vani

Member Avatar for peter_budo
0
52
Member Avatar for livingsword

hi there everyone. I have a kinda confusing assignment this week. the question is "Write an Applet for formatting inserted data". Now, i can't understand the question and the prof is not very kind. Please help in explaining me the logic. I am not asking for any code, all i …

Member Avatar for vinod_javas
0
101
Member Avatar for vinod_javas

Hey guys.. How to write a textfile..from client to server.. I have tried like this [B] lStrFile = "ErrorLog" +""+day+""+mon+""+year+".txt";[/B] [B] FileWriter fstream = new FileWriter(lStrFile, true); BufferedWriter out = new BufferedWriter(fstream);[/B] [B]out.write("Error ");[/B] in this code the error will locate in current place.. i mean in our project location... …

Member Avatar for jwenting
0
95
Member Avatar for ronpar123

How do I authenticate uid/pwd against a jbOSS realm. Like in websphere I am using [B]com.ibm.ws.security.common.auth.module.proxy.WSLoginModuleProxy [/B] can anyone tell me corresponding code for this in [B][U]Jboss[/U].[/B] [B]Thanks[/B]

Member Avatar for jwenting
0
111
Member Avatar for chairmanphp

hello guys...Please tell me the disadvantages of jini tech... i waiting for ur replies........:)

Member Avatar for jwenting
0
36
Member Avatar for vinod_javas

Hey guys.., Plz Help me out for this..... Is there any provision.... for giving security to a jar file.....i can easily unzip all the files from jar using winrar... and we can easily get .java file from .class so i want to know is ther any way to provide security …

Member Avatar for jwenting
0
155
Member Avatar for vaniprahalathan

hi, i need your help..........may i have a copy of java comm API for windows. i need it urgently bcoz i nead to read rs232 and transfer the data. tq. please reply as soon as possible.

Member Avatar for masijade
0
43

The End.