You can connect Java via USB / serial, but you might need to give up any hope of "Write Once Run Anywhere". I wrote a little helper in Java for a bad oscilloscope I bought once here:
gds2062 -...
Type: Posts; User: Sean4u
You can connect Java via USB / serial, but you might need to give up any hope of "Write Once Run Anywhere". I wrote a little helper in Java for a bad oscilloscope I bought once here:
gds2062 -...
Remember if your function argument is int or smaller and your function return value is int or smaller, that there's *by definition* a static alternative on reasonably common hardware. Your "boolean...
You mean a link like a "Please click here to confirm your registration"? That would usually be a http URL, so "m/c A" (no weird abbreviations next time, please) would have to run an HTTP server on a...
You may need to read the response for the request to be sent. I'm fairly sure it's a 'lazy' process. Read the API docs for HttpUrlConnection - I think reading a response header or the response body...
Your Test.java source file contains a class called "Hello" - that's wrong, it should be a class called "Test". If you want its full class name to be test.Test, you should have a package declaration...
Oh! That was a useful post - I just happen to be working on something a bit like cosm and wasn't aware of the site :-L
I'd hesitate to recommend going down the Arduino route, unless you're...
I've used USB-plugged devices from Java in the distant past - it does work. The problem you'll face is how well documented the USB interface is for whatever device you use - reverse engineering an...
That '#' is the Fragment Identifier:
Fragment identifier - Wikipedia, the free encyclopedia
You won't see it at the server because most user agents (browsers) don't send it to the originating...
Norm has done a better job than I have of reading your code :D
I've never used Scanner, but a quick glance at the API doc for the class makes me think that 'hasNext' and 'nextLine' is not a good combination. 'hasNext' and 'next' seem better matched but not...
Welcome to the forum
With Java? I think Java's great, but it wouldn't be my first choice for "building a website" if I was "new to programming in any language". Are you sure you're not thinking of...
How about providing some more information? What exactly are you doing? A copy-pasted stack trace is always more useful than "i got the error like". You could let us know what platform you're using...
:D I just happened to be wondering the same thing as 'wap' when I saw the question!
What you're trying to do is Optical Mark Recognition:
Optical mark recognition - Wikipedia, the free encyclopedia
A quick search for "java omr" got me this page, which contains a link to an...
Is there a reason why you're not using GregorianCalendar?
GregorianCalendar (Java 2 Platform SE 5.0)
You just need to re-read the API documentation for Random. The constructor you're using doesn't do what you think it does. Nor does Random.nextInt(). The fix is to select the correct constructor and...
The way the data starts out 'bad' but ends up ok makes me think your problem is at source - and probably something to do with some bit-serial code somewhere. If you're using a Java Socket as your...
Like I've already said more than once: I don't think there's anything wrong (that would cause the problems you report) with your Java code.
When you test your code to get the outputs you've...
You're wasting your time trying to get your Java code working when you say you've seen scrambled data at the network level. I think your problem is between the device and your PC. Where is the...
That's not what I meant - what I mean is "what is offering port 7000" on your PC? I see in one of your programs that you open a ServerSocket on port 7000, but I don't understand why you'd read...
It'll work because Math.pow is pow(double a, double b):
Math (Java Platform SE 6)
'n + 2' is an expression whose value is int if n is an int and double if n is a double (the '2' is an int and would...
Don't duplicate your posts. You've already posted this question here, with context (your assignment):...
Specific examples we can help with!
You can of course do what you just posted, but it won't help you (I think) compute (1-to-N)! What you really need to do is to write a method with a signature like...
Sure, here you go:
http://www.amazon.co.uk/s/ref=nb_sb_noss?url=search-alias%3Doffice-products&field-keywords=week+to+view&x=0&y=0
and also:
Go to sleep. Even if someone haz teh codez, no tutor...
You used OutputStream.write() with a String in your original code.