|
Hello Everybody,
Can anyone help me to implement ECDh in Java? I need it so much.
Thanks
Nayeem
|
|
|
|
|
|
I have a string strValue = " 'one',two "
I want to change the the value strValue to " 'one'+'two' "
Can anybody help me?
Jo
|
|
|
|
|
according to documentation [^]
strValue = strValue.replace(',','+');
should do the trick.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
create a class toy collection that stores information about different toys in a toy shop. The information to be stored about a single toy is,
- toy identification as string
- name of the toy as string
- Short discription about the toy as string
- Price of the toy as float
- Quantity of the toy in hand as short integer
This class contains following methods,
- Constructor method that assigns user input values to above mantioned variables.
- main() method that creates array of 4 objects of toycollection class and that takes input for all about details from the user end
class method to check validity of Quantity and Price values. If all values are valid then create the object and display the details for all 4 toys.
- Method that checks validity of quentity and price. If the quentity is 0 or negitive then method should through a user defined exception with approriate message and come out of program. Similiry if the prize is 0 or negivity then it should through user defined exception with appropriate message and come out of the program.
- Method that displays all detail about a single toy in the following format, e.g. Here Total price should be calculated
Toy Identification : S-1
Toy Name : Small Scooter
Toy description : Ordenery 3 wheeler Scooter
Toy Price : 650.50
Quantity in hand : 3
Total price of Toys : 1951.50
|
|
|
|
|
So you want us to do your homework, right ?
and what if you were listening at the teacher when he was talking to you guyz at the rear of the classroom ?
|
|
|
|
|
i m having problrm in running java program.My program is getting compiled but when i try to run it it give me the following eror
Exception in thread "main" java.lang.NoClassDefFoundError: Example
The name of class in my prog.is Example
i m compiling it using javac Example.java command and running it by using java Example bt it is generating error.plz help to fix my problem.
annie
|
|
|
|
|
such an exception typically occurs when a user-defined class you're using (a class of yours then) cannot be found by the JVM.
To solve that, check your classpath.
Just a guess : why don't you use an IDE (Eclipse is pretty cool for java !! you should have a look at it) ?
BTW, Do you Example class references any other class defined in another file which the compiler wouldn't know about ?
|
|
|
|
|
My guess is '.' would be missing in the classpath.
As in aforesaid reply, its good to use IDE like Eclipse.
|
|
|
|
|
Hello,
I've only dabled a bit in Java, I work almost exclusively with .Net. That being said, I am looking to do encrypt a string from a java application (this will be done by another developer), decrypt it in .Net and send an XML response to the the java app.
Is there a universal method for encryption in Java that would allow us to use the same encryption key/method?
I know how to encrypt/decrypt in .Net, I just need to know if there is a standard that is used by both frameworks?
|
|
|
|
|
FYI - (in case anyone is interested)
I just used standard DES encryption which worked out great for my situation. As long as the same rgb/rgbIV keys are used on both ends, the entire process was very painless.
|
|
|
|
|
if we have a tree that contains int.
I want to find the largest subtree, in a sense that it (subtree)has largest sum of the values of the nodes
Any idea, codes??
Thanks
P.S.
|
|
|
|
|
I think you need to clarify your question. E.g:
1. Are you talking binary trees here?
2. Do you mean you want a method to test which childnode of a given node that together with its childnodes has the largest sum of values?
"God doesn't play dice" - Albert Einstein
"God not only plays dice, He sometimes throws the dices where they cannot be seen" - Niels Bohr
|
|
|
|
|
Please help me in reading large files in java.i encountered OutofMemoryError.
buntyrolln
|
|
|
|
|
how do you read your file ?
please post a relevant piece of code.
|
|
|
|
|
hey why dont you increase java heapsize, using -Xms512x -Xmx1024x parameters, just go through jdk150_11 documentation and do the work around it will read.
|
|
|
|
|
I am using eclipse modelling framework. i am unable to connect transitions to their source states and destination states. Please somebody help me
|
|
|
|
|
you already asked that yesterday.
it's a forum, not a chat.
so please read the forum guidelines, and be patient.
also, know that if you don't be efficient answers, maybe it's because nobody knows, or because you asked the wrong way with too few infos, etc...
|
|
|
|
|
I am using eclipse modelling framework. i am unable to connect transitions to their source states and destination states. Please somebody help me
|
|
|
|
|
I use to have the code but I am unable to trace it.
can anybody help?
|
|
|
|
|
please ask a specific a clear question (because I can't even understand what you're asking for...!
|
|
|
|
|
I want to connect to another web page, like in html "href......."
via an applet
|
|
|
|
|
Hi guys sry this isnt a programming question. I've always been wondering why JAVA is so important the development takes ages and the coding is difficult. I still dun get wht object oriented programming is. I dun want u guys to think i'm being bias against JAVA but why is this Language still Alive. Wht are the good points of using it.
And the Big question is it better to develop Applications in Visual studio or Java.
Does the google website run on java?
I'm a noob programmer seeking advice from u pro programmers.
Thank You
|
|
|
|
|
i'd be happy to argue with you about this, but for this, i'd be glad if you could type correct english.
ok, here is a short easy question to yours :
duo!@# wrote: why is this Language still Alive
why wouldn't it ?
C# is better ? certainly not.
most of what people think about java is biased because of all the noise microsofties made about it.
Java is NOT slow. you know, you can have bad programmer, and get a slow C/C++ applications too (which can lead into memory leaks if they don't take care of it). Java is also very well developped and maintained, and does not run only on windows. OH, but wait, you thought Windows was the only *real* OS ? sorry to break your dream.
most of the very large enterprise applications run on UNIX because (1) the UI is not needed and (2) it makes the plateform more stable. so, will you be able to run a C# on UNIX ? what ? mono ? crap. this is a project from the open source, not maintained by microsoft, then that will always be a lenght late.
BTW, ok, Microsoft is very good at providing development too, and programing languages, but look, Visual Studio doesn't half of the features Eclipse have.
Also, as long as there will be millions of lines of code running somewhere, the language wont be dead. Take Cobol for instance... buddy, COBOL is still alive !!!
duo!@# wrote: And the Big question is it better to develop Applications in Visual studio or Java.
that doesn't really makes sense. if you wish, you could even develop under notepad, KDevelop or vi...
that's just a development environment; it doesn't make your applicatino better.
but maybe you meant which compiler/optimizer is better ? for that, i don't know. but again, i think we can't really compare.
duo!@# wrote: Does the google website run on java?
nope. Google use a proprietary technology. not java, not .NET. something of their own which they strongly keep secret.
duo!@# wrote: I'm a noob programmer seeking advice from u pro programmers
man, you know what people say about choosing a programming language ? choose the one that fits you at best. If you find C# better, go for C#, but please don't spit at Java like those idiots who only swear by God Microsoft (moreover, most of the ones who spit at Java never wrote a java line of code of their life). if you want to play with linux one time in you life, or even better, to write portable applications, then it's probably worth it using Java. And i don't even talk about J2EE...
|
|
|
|
|
Did u mean correct english by the "u,wht". I know windows is not the only OS out there i even
researched on the
history of OS(its pretty long).But lets start from the GUI OS time line ,made by a group from Xerox.
which was later copied(oops) by Apple then by Microsoft. The current OS runs on the x86 architecture
powered by intel chips.
-------------------------------------
Then these OS giant have to allow the JAVA to run on their OS systems(something sinister going on).
Then strange enough Microsoft Office(isnt that a Windows program) can run on the MAC which was
announced a few years back.
-----------------------------------
Actually i've heard very little about unix(Linux an ofspring of UNIX) used in enterprise applications
could u enlighten me about it like what sort of applications are used.
---------------------------------
Even though there are alot of OS's out there Windows is the dominant and ya its true many ppl dun
even know that there exist other different types OS's.
---------------------------------------
I know JAVA runs on a virtual machine which i have no idea how to create(do u know how?). I got
really p i ssed off when i started using the J2SE(not sure thats the right one)IDE it was so annoying
to use,
debugging was even worst it was like a jungle, and to make matters worse the GUI codes made it even
more difficult to debug(the reason for my frustration towards JAVA). Only recently i started using
easy eclipse(which i later found by accident), excellent user interface.
---------------------------------------------
And i know why windows is so dominant over MAC because of GAMES we teens love playing cool games(most
of these game cannot even run on MAC) and which OS platform provides it, Windows. Whoa i think i'm
getting cared away by talking about OS
---------------------------------------------
modified on Friday, June 6, 2008 5:37 AM
|
|
|
|