|
No, we can't - as you say it's "quite a lot" of code - and it needs your data to duplicate the problem.
So, it's going to be up to you.
Fortunately, you have a tool available to you which will help you find out what is going on: the debugger. How you use it depends on your compiler system, but a quick Google for the name of your IDE and "debugger" should give you the info you need.
Put a breakpoint on the first line in the function, and run your code through the debugger. Then look at your code, and at your data and work out what should happen manually. Then single step each line checking that what you expected to happen is exactly what did. When it isn't, that's when you have a problem, and you can back-track (or run it again and look more closely) to find out why.
Sorry, but we can't do that for you - time for you to learn a new (and very, very useful) skill: debugging!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Fortunately I seem to have found the problem, as I suspected, it had to do with how I declared ATM in my jframe.
|
|
|
|
|
<pre>It becomes a name store of 10 names. A random name is chosen from among these 10 names. A line is added with a space between them as much as the number of letters of this name. Try to find this name in 5 guesses. When a correct letter is known, if this letter is more than 1 in the word, they should all be revealed together.</pre>
|
|
|
|
|
This has nothing to do with eclipse, and not a lot with Java. You need to write a specification of the problem showing all the steps needed to get the answer. Once you have that then you can think about writing the Java code to implement it.
|
|
|
|
|
Hey everyone! Last fall, a friend of mine gave me an app idea. It was a multiplayer game that she was handmaking for a while and she wanted me to make a digital version of it.
The rules of the game are similar to Cards Against Humanity - each round, a question is displayed and every player has to answer it with one of the cards in his deck. A delegated player picks the funniest match and the winner gets a point.
I spent a lot of time and effort making this. Any review or feedback would be appreciated!
|
|
|
|
|
We can't review or give feedback - we don't have the app to look at - and if you start posting EXE files no one will download them, if you post a site link we'll assume it's spam, and a store link we know it's spam.
So all we can go on is the description: which is so close to the original that it's probably actionable:
We own the name “Cards Against Humanity,” the graphic design of our game, the slogan, logos, and all of our writing. That means you need a license from us to use any of those things. Please don't make something that's an obvious knockoff of Cards Against Humanity's brand or name. In the United States you have to defend your intellectual property or you lose control of it; please don't force us into a legal conflict where we have to defend ourselves—we just want to write jokes.
I'm not a solicitor, nor do I live in 'murica - but in the UK we have the A moron in a hurry test[^] we this would probably fail.
So ... best I can do: not a review, not really feedback - but I'd think long and hard before I took any further steps with this app if I was you ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
If it was that great, you wouldn't need comments based just on an idea. And another player gets to pick the winner ... Right.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
|
This program is supposed to calculate the area of an equilateral triangle, a square, and a hexagon, given a line length (s) 5 times each and pass them into their own respective arrays. It then calculates the average area of each, the area closest to the average, and the area furthest from the average in each array. Every time I run the code it returns an area of 0.0 for the closestTriangle, closestSquare, and closestHexagon. I cannot figure out why it won't calculate the areas correctly. Can someone please steer me in the right direction so I can figure out where I went wrong?
modified 18-May-21 9:51am.
|
|
|
|
|
Didn't you try to debug your code?
|
|
|
|
|
Seriously? Without seeing the code, how do you expect anyone to tell you what you did wrong?
|
|
|
|
|
Dave Kreskowiak wrote: Without seeing the code, how do you expect anyone to tell you what you did wrong? Rookie.
|
|
|
|
|
|
Yes, we can steer you in the right direction.
Step 1, post your code.
|
|
|
|
|
I am new to maven and javaFX. I am having trouble loading my fxml files into the FXMLoader. And also I don't really understand the project structures with Maven and without Maven.
I found this article on stackoverflow which seems quite comprehensive, however I could not understand the explanation why, in a Maven project, I need to duplicate the folder structure in "resources".
I tried to post an imagefor better explanation but was unable to find the option in this forum.
image: chrome 5QsdzWr8VA - Gifyu[^]
modified 3-May-21 14:59pm.
|
|
|
|
|
|
Thanks for replying. That tutorial I had already read. They don't talk much about the structure of projects. In a photo, you can see how they copy the folder structure in "resources" but they do not explain why or if it is mandatory to do so.
|
|
|
|
|
|
Hello, I'm studying from 0 to programming in Java and I would like to get, if someone can share, some PDF with solved basic exercises of programming in Java in Spanish preferably. My current level is Hello world and little else.
Thank you.
|
|
|
|
|
Probably not. This site is not in the business of just giving answers away to homework assignments (or other learning materials) because that really wouldn't help you.
Part of the solution to the problem is actually thinking about the problem and breaking it down into smaller and smaller parts.
|
|
|
|
|
See The Java™ Tutorials[^]. It is all in English but your local bookshop (or Amazon) may be able to find you a Spanish translation.
|
|
|
|
|
|
I am currently working on j-Table in net-beans where I have populated it with data fetched from database. Now I need to apply search functionality in it. I have gone through some of the examples however they were only getting manual data(columns and row-data) from the code(not from DB). Need help
|
|
|
|
|
What are you trying to search for, entries in the table, or the database?
|
|
|
|