This may have been posted elsewhere...
I'm writing a couple of apps that I think I might be able to sell. I have a couple of questions regarding this.
1. Do I need to/should I set up a separate...
Type: Posts; User: mjr
This may have been posted elsewhere...
I'm writing a couple of apps that I think I might be able to sell. I have a couple of questions regarding this.
1. Do I need to/should I set up a separate...
I'm working on an app that I might potentially want to market. I want to encrypt some of the information, and then have the user be able to "recall" that information, which then decrypts the string....
Use Binet's formula, and the range of the numbers, if I understand you correctly.
Let's say your range is from "position" 2 to 5.
You would use a for loop that starts at 2, and go from there.
...
I don't know about you, but I'd use a decimal primitive type, and Binet's formula to get large fibonacci numbers. Pass in the "position", have a method that calculates based on Binet's formula, and...
Ok, after some refactoring, I think I have it figured out. I changed the for statement in the original code to a while statement.
I also changed the x variable to a long type instead of just an...
I get what you're saying about the primitive types. I do notice that in my code above I'm using an int type for the "number" variable, and a long for the step variable. So the step variable can go up...
I'd have to agree with the above poster.
Interesting. So if I understand what's going on correctly, I'm getting an uncaught overflow error. I thought I was using a large enough data type. Guess not.
Am I correct there?
Ok, I was recently writing a small java app that would print out values according to the Collatz Conjecture.
Collatz conjecture - Wikipedia, the free encyclopedia
Anyway, I noticed that after a...
Ok, here's the situation.
I'm almost 37 years old, I've been in IT for almost 15 years, and I started back to school in 2012. I'm taking two classes at a time, essentially starting from zero. I...
I guess one approach is that if each piece of data is on one line, you could use an array. Read the data from the file into an array, using the line breaks to separate the elements of the array, so...
We finally figured this out. Since we were installing the Windows service on a 64-bit Windows machine, we had to install the J# 2.0 x64 Redistributable. That solved the issue.
Yes, I do believe this is a java-related question.
Ok, here's the scenario: I built a windows service in C# that uses OpenText LiveLink to copy some files. The service works like it should on my...
I actually got it to work this morning. I did add the classpath when I first extracted it, but I didn't download the UI plugin. Had to Google for it, but once I did that, I was able to get it to show...
Ok, I've been looking into Embedded databases. I downloaded and installed (I think) Apache Derby. I unzipped it per the instructions I found.
I'm trying to get it to show up in Eclipse Indigo,...
I Don't know everything about how to do this (in fact, I'm about to make a related post myself), but I would look into how do deploy your application with an embedded database (such as Apache Derby).
Exactly what I needed. Should have thought about this myself. Thanks headed your way.
Norm:
Thanks for asking. Before I post the code, yes, I understand that I shouldn't "hard code" paths to files (i.e. C:\MyFiles\somefile.txt), because of the various file systems on various...
Good question. Yes, I have. I neglected to mention that.
When I try to do that, the only thing that gets written to the file is the final object. I'm assuming what actually happens is that it...
Let's say I have a class called "Names", and it has two properties: firstName and lastName.
And let's say I want to persist the data to a file.
And let's assume that the first time the...
I have the following method for determining whether or not an integer value is a prime number:
public boolean isPrime(int value){
if(value < 2)
return false;
else
{
...
Generally speaking, 5 characters counts as a word. So a sentence like: "My name is Bob." would generally count as 3 words.
If the test itself is not timed, and you're merely typing three...
I've actually written a small program (it was for a homework assignment in a college Java class I took) that actually checked for Prime numbers, and did it fairly quickly.
In fact, I found a list...
Have you tried declaring it private to see what happens?
I'm still fairly new to Java, but remember: main() is inside a class. The class that holds main() is public. And remember that if a method...
This should answer your question about UUID in your title.
Universally unique identifier - Wikipedia, the free encyclopedia
There are 340,282,366,920,938,463,463,374,607,431,768,211,456...