Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!

Kevin Workman

Ranch Hand
+ Follow
since Sep 28, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
9
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kevin Workman

Bryce Heath wrote:Hey guys
Thank you for the quick reply's. I love this board already, as I said had a bad experience with another one I joined after a quick google search " it will remain nameless" and found that even basic noobie questions took days to get a reply, and it was always from the same moderator, who for some one in charge of a forum was very snarky and not at all helpful. That being said glad its behind me lol



I don't want to argue here, but I'd like to point out that the three questions you asked in "the other forums" all had answers within 20 minutes (which is even faster than the response time here). If you thought my reply (I assume you're talking about me) was short, it was because you already received the correct answer but were ignoring it. Had you responded with a description of what about the answer you didn't understand instead of simply posting uncompilable code, it would have been much easier to help you.

But oh well. Happy programming.
10 years ago
What did you find on google?
10 years ago
Again, you haven't told us what you mean by converting an int into a byte array. Some examples of input ints and desired output byte arrays would help.
10 years ago

Scott A Burch wrote:I need to convert spinnerStr into ASCII decimals first, then put the decimals into a byte array. Using spinnerStr.getBytes() directly gives me a very different result than what I am looking for ...

So somehow I need to convert int j into a byte array.

thanks!



That doesn't make a ton of sense. What do you mean by converting an int into a byte array? What kinds of numbers are you expecting, and what do you want them to be when you convert them? For example, what would the "converted" value be of each of these numbers be:

0
17
-5
-9999
9999
10 years ago
Read the link I posted. It explains what the classpath is, why you need to set it, and how you set it.
10 years ago

nirjari patel wrote:Can I just import these packages in the class with import statement in the beginning or do I need to put these packages in some library or path in order to import it in the class ?



What happened when you tried that?

The packages have to be on your classpath.

Recommended reading: Setting the class path
10 years ago
You should probably look into using a SwingWorker.

Alternatively, you could just use invokeLater() in the other Thread to set the text after it's done doing its thing.
10 years ago
String has a toByteArray() method. Check out the API.
10 years ago
I have a stupid question- Can't you just use lastIndexOf("...")?

Edit- Nevermind! Stupid question answered.
10 years ago
The OP crossposted this topic here.

OP- Please BeForthrightWhenCrossPostingToOtherSites. I feel like I wasted my time on the other forum simply repeating help you already received, and will probably not be helping you in the future.
10 years ago
Read this.

If you still don't understand what's going on, post some code- in SSCCE form.
10 years ago
No.

Compile and run it with the annotation. Then compile and run it without the annotation. Nothing will change.

Now put the annotation back in, but change the name of the toString method to something else: toStringSpelledWrong(). Compile. What happens?
10 years ago
@Override doesn't actually do anything. It just tells the compiler to spit out an error if that method isn't overriding a method from a super class. It doesn't actually change how your code works.
10 years ago