4,084 Posted Topics
Re: I personally can not think of one single reason why you shouldn't be able to run them both one one machine. of course that is assuming you are not working on a 486 desktop that should've been replaced two decades ago. | |
Re: actually, yes. but you also have to change the +'s to -'s, and < to >. can you show the changed code you tried? | |
Re: Divinity: nobody expects you to build up to anyones level but your own, but the question you must ask yourself: "If I still make (almost) the exact same errors as I did a year ago and still not manage to get any further toward a solution then I did at … | |
Re: This is not just a black and white question. Are you in the situation that you can (financially) carry on without taking the project? Do you have other work to fall back on? Do you already have a few decent projects to put on your resume? True, maybe friends and … | |
Re: "This" is what you have so far... what is "This"? | |
Re: without seeing any of your code, all I can guess is, you are trying to use a Stream that is already closed. | |
Re: hello James, If this is your first visit to DaniWeb, welcome. If by some chance you've mistaken the forum for "coderz-for-hire" or if you thought you saw a big "We'll do your homework for you" banner on top of the page, I'm afraid you're mistaken. DaniWeb is a group of … | |
Re: you want us to comment on your code without seeing your code? based on your description: extract it in a method, and call that method in a loop. | |
Re: Do you have these classes in one single .java file? Then that is your problem. The second class (with it's import statement) has to be inside a second .java file, being: die.java But this is far from your only problem: you are using variables you never declare. For instance: what … | |
Re: seems as if some simple conditional statements can solve this for you. What do you have so far? | |
Re: my recommendation: don't. even though /* and */ are usually (not always!!) used for comments, some frameworks (GWT, for instance) use it to tell you that native code is being used. Here is a simple example of how to code a JSNI method that puts up a JavaScript alert dialog: … | |
Re: well, just look at the Paypal website. according to them, it can be done, so who am I to disagree ? Then again be advised, that not all companies want to be paid with Paypal.It's nice and all, but when you're hungry, you can 't just walk into a bakery … | |
Re: the way out is to stop using applets. Browsers have stopped supporting it. | |
Re: why would you want to do this: for (int i = 0; i < number; i++) { int randomInteger = randomNumber.nextInt(); maxValue = numArray[i]; minValue = numArray[i]; This means you overwrite the maxValue and minValue each iteration, regardless whether the value is more than the existing max, or lower than … | |
Re: do remember that Java runs in a JVM and doesn't have access to all data of the OS. Also: not all OS's work the same way. | |
Re: also: don't make it harder on yourself then it should be: catch (Exception ex) { } see what's wrong there? how will you ever know whether that part of your code runs the way you think, or throws a whole lot of exceptions? you are hiding every exception you throw, … | |
Re: but, most importantly: we have no idea what you are trying to do with your code, neither do we have an idea what it's doing (wrong). | |
Re: an ms access database? why on earth do you want to do that? not only would it need the database, it had better have MS Office (at the very least Access) installed, and very few serious people would agree to use a MS Access database for a serious application. | |
Re: what do you mean by 'document format'? | |
Re: the irritating part is that it's basically "code you've found online". Does it actually link to your db, is it correctly configured? Why not writing your own persistence code? | |
Re: and which of those did you download? the version 4 should have it | |
Re: encryption shouldn't be based on whether your app is mobile, web or standalone. Never read a "for dummies" book. The only thing they really achieve in is making you believe you actually read something worth reading. if a topic is worth reading: don't go for the "for dummies" edition. It's … | |
Re: First of all: don't forget to add an actual question to your post, secondly, the code you show, is JavaScript, not Java. A good first start is knowing what language you are working in. Did you write this code yourself? | |
![]() | Re: why didn't you just post that here: https://www.daniweb.com/community-center/for-hire-hiring/52 Since this isn't actually a post concerning technical issues you are having with any of the languages you tagged, the tags don't really apply here. Why do you want to create it for smartphones first, by the way? I doubt it's easier. |
Re: Harvey_1 : you could/should have posted that in a new thread. this is what we refer to as a 'dead thread', a thread that is years old, and marked 'solved' almost a decade ago. chances of people reading this are slim. start a new thread, provide all the information of … | |
Re: As always: keep your code as simple as possible. For instance: String monthName[] = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}; String monthString; int month = 8; switch (month) { case 1: monthString = "January"; break; case 2: monthString = "February"; break; case 3: monthString … | |
Re: Nice assignment. Not clear what it is you want us to do, though. | |
Re: by instantiating and using it? Only the showCharacters will be useless in your GUI, since it's hardcoded with console output. | |
Re: Can't you refactor this bit? if (myMatrix[i - 1][j - 1] == true) { counter2 = counter2 + 1; } if (myMatrix[i - 1][j] == true) {counter2 = counter2 + 1; } if (myMatrix[i - 1][j + 1] == true) { counter2 = counter2 + 1; } if (myMatrix[i][j - … | |
Re: How come 'randomly' if it's a FIFO queue? | |
Re: prateek: this thread is four years old. You should try to write your own code, and when come into something you can't solve, start a new thread, showing your code and what you expect it to do and what it is actually doing (wrong). Don't revive dead threads. | |
Re: if you are totally new to Java, maybe you should start with getting acquainted with the language. It's a bit like learning to swim: if you don't know how, jumping in the deep end when noone else is around, might get you in trouble you can't get out of. | |
Re: `new JButton("added button");` creates a Button. can you be more specific about what you try to do, and how you've tried it so far? | |
Re: If you are new to programming, you should consider start learning at the beginning. Jumping into more advanced techniques won't make learning it easier. James told you what to do to check the first thing, in a way someone new to programming should be able to understand, let alone somebody … | |
Re: The best and most reliable way: > 1. learn Java > 2. rewrite the code in Java > 3. **THIS STEP ALSO IF YOU USE A CODE CONVERTER** > a. Test the code > b. As long as bugs are found - fix the bugs and return to step 3.a | |
Re: what "does not work"? can you distinguish between requirements - pseudocode - actual code, say what works, what fails, any error message, where the exact problem is, ... | |
Re: Sure, why not? But, "try before you buy". Since it's 12 months free, first try it out for a personal website (not linked to your client) for a period of (at least) a month. See if it's stable, see if you can get lots of people to visit your page … | |
Re: What is 'query', what is 'em', what does 'getResultList()' return? This code is way to vague to be clear. Have you debugged over your code and checked the contents of list? | |
Re: This is not Java code, this is JavaScript code. If you think they are the same, it's a bit as saying a Car is the same as a Carpet Anyway, have you tried applying a regex validation? | |
Re: I just checked a bit the original code: while(i<=4) { if(i<=4) { There is no need for the if statement here, that's already checked by the while. Secondly, your problem lies here: else if(choice == 'B' || choice == 'b') { System.out.println(playername+" no troll!! not the correct answer, you need … | |
Re: Not bad, yet I'm afraid quite a few applications won't be able to work with it just yet. I've seen quite a few applications where errors like this are caught with "if error == 404" -> not found " else if error in < specific error code list > " … ![]() | |
Re: JUnit tests don't take parameters. JUnit tetsts are supposed to test existing units, not to create new untested units. | |
Re: what is "your tracker", what have you got so far, what have you tried, ... ? | |
Re: This makes very little sense: what if there is a value that appears as both key and value? how will you know which to return then? | |
Re: Also, something that is better to start early with, it'll make your code shorter, more efficiĆ«nt and easier to maintain later on: String response = input.next().toUpperCase(); if(position == 0) { if(response.equals("A")) { responseAns = true; } } else { if(response.equals("B")) { responseAns = true; } } This is quite a … | |
Re: where is that `getString("name");` call? I only see calls to a `getSring(int column);` method. | |
Re: > The NullPointerException is right before the if loop. The app works well if I code it this way: if(mode.equals("easy")) { but with this, it would only display the Easy difficulty with the NBA image set. > there is no such thing as an if-loop, only an if-statement. This means … |
The End.