|
Thank you soo much, you're a life saver
|
|
|
|
|
any body have code for berlekamp massey algoithm in java
|
|
|
|
|
You had an answer to the same question yesterday. If you want it in java then I suggest you rewrite the C# code into java rather than being lazy and asking for someone else to do it.
My failometer is detecting vast quantities of FAIL!
"Its SQL - hardly programming..." (Caslen)
|
|
|
|
|
hey guys..i m building a motion detector in java....the problem is this, i have two bufferedimages from webcam...these are consecutive images taken from webcam...i need to compare these two images to check for any changes....i have no idean how to do this...i m trying getRGB() method for this purpose but i think i m not correctly applying it....
so if anyone have any idea how to do this..plzz reply...
|
|
|
|
|
It can be idea below:
convert both images to Base64 String and compare them
|
|
|
|
|
class jumping{
public static void main(String[] args){
int b,c;
float a;
b = 8;
c = 2;
test:
{
a = b/c;
System.out.println("a first is "+a);
while(a<=10){
b++;
System.out.println("b in continue is "+b);
if (b==12)
{
break test;
}
System.out.println("a final is "+a);
continue test;
}
}
}
}
i need final value of a is 6. but i can't?
can you solve this?
there are error in "continue test" statements, it give not a label?
i need there code jump to label test like goto in C++?
Kindly help me????
|
|
|
|
|
why not just make test into a function or method and invoke it, im not sure what your code is supossed to do, but if it's supossed to continue executing untill b is 12, i've written an example :
class jumping{
public static void main(String[] args){
int b,c;
float a;
b = 8;
c = 2;
test(a,b,c);
}
public void test(float a, int b, int c)
{
for( ; ; ){
a = b/c;
System.out.println("a first is "+a);
while(a<=10){
b++;
System.out.println("b in continue is "+b);
if (b==12)
{
System.out.println("a final is "+a);
return;
}
}
}
}
}
ps : ident your code, it's very difficult to read otherwise, and use the code block
ps2 : someone should disbale smileys in the code block
|
|
|
|
|
class jumping
{
public static void main(String[] args)
{
int b,c;
float a;
b=8;
c=2;
test:
{
a=b/c;
System.out.println("a first is" +a);
while(a<=10)
{
b++;
System.out.println("b in continue is " +b);
if(b==12)
{
break test;
}
System.out.println("a final is" +a);
continue test;
}
}
}
}
i want if b not equal to 12 then "a final is" is print. and b increase and also a is but it not?
"kindly help me in java for using label/jump like goto in c++"
|
|
|
|
|
[quote]i want if b not equal to 12 then "a final is" is print. and b increase and also a is but it not?[/quote]
have you tried my code ? that's basically what it does
|
|
|
|
|
thanks. that is ok..
but it's not good solution for my problem.
ok, i tell all thinks....
i develop a math program where a loop run apporoximat 800000 time and finaly value is came. in c++ there are goto statements and control jump to backword or forwared where we need. like that i need jump my code if my condition false and if true the loop exit.. so i can't use function.
and it's a reason i send my code like that...
so if u do please help me..
|
|
|
|
|
The goto statement is bad. When ever you call goto in a program a bunny will stub its toe. You can't be nasty to a fluffy bunny's toe can you?
Loose the goto and learn to love and embrace methods and loops.#
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Write a method for calculating
n
C
r
!
, based on calculating each of the factorials (using
an iterative method that does so) and combining the results appropriately
can some one help me...
|
|
|
|
|
harshad bhatia wrote: Write a method for calculating
n
C
r
!
, based on calculating each of the factorials (using
an iterative method that does so) and combining the results appropriately
can some one help me...
Start off by taking your medication, put on your glasses and then read what you have written. What is there in the above that anyone can possibly help you with?
Try something and when you have a problem with your homework ask a sensible question that will elicit help.
No one is going to do your homework.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Welcome, williamnw.
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]
|
|
|
|
|
Hi...
I have to call a csharp function in Java.
Can somebody give me a small example of how to do this.
Please do help me out.
yogesh
|
|
|
|
|
Do you have a scroll wheel on your mouse?
Scroll down two topics. (hint[^])
My failometer is detecting vast quantities of FAIL!
"Its SQL - hardly programming..." (Caslen)
|
|
|
|
|
Same post in like 3 forums in 1 day. Nice.
|
|
|
|
|
Hy guys ! i'm having a problem getting my tcp server applet on it's feet, the problem is that it doesn't get past instantiating a socket, if i instatiate it with port nr 80 it throws an exception ( Address already in use: JVM_Bind ), with other ports it just locks up at the "binding port" part
ServerSocket server;
int port= Integer.parseInt(portNumber.getText());
status.setText("Starting server..\n");
try {
status.append("Binding to port " + port + ", please wait ...\n");
server = new ServerSocket(port);
} catch (IOException ioe) {
status.append("EROARE la creearea socketului\nEXCEPTIE:
"+ioe.getMessage()+"\n");
return;
}
does anybody have a clue why this happens?
|
|
|
|
|
i'm uploading the server class and test web page if it will help sort this out
here it is : [url]http://uploading.com/files/XQ0TGHPT/server.rar.html[/url]
|
|
|
|
|
I couldn't say why a port might lock up, but if you're using windows you could run the "netstat -a -b" command with arguments to determine if the ports you are selecting are in use. The -b parameter will also tell you what process is using the port in question.
At a minimum, that will tell you if a port you are trying to use is available or not. If you have an appserver installed and running, (or even skype), one of them may be using port 80.
|
|
|
|
|
You might have something else on port 80?
This is the main port used by HTTP, so if you've got another web-service it may well be in use.
Try running it up pointing to a DIFFERENT port and see what happens.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
[quote]You might have something else on port 80?
This is the main port used by HTTP, so if you've got another web-service it may well be in use.
Try running it up pointing to a DIFFERENT port and see what happens.
[/quote]
allready tried , it locks up at the ServerSocket instantiation, and starting today it lock up on 80 too, i have absolutelly no clue what i'm doing wrong
|
|
|
|
|
Hi...
I have to call a csharp function in Java.
Can somebody give me a small example of how to do this.
Please do help me out.
Thnx.
|
|
|
|
|
All the references I have come across require a bridge between the two environments. The most common approach, used for ad-hoc projects as well as commercial solutions, is to wrap the two sides with a coms layer sending XML messages.
Have a google for 'java c# interop' and read up on the subject.
Also see here[^]
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Thnx for the help, i'll check it out.
|
|
|
|