I am currently taking intro to JAVA. I am having trouble putting everything I am learning together to complete my assignments. When I read my assignments for class half the time I don't even know where to start but I feel like I am understanding the materiel. I don't know if I am just over thinking it but it is starting to frustrate me a lot. For example I completed one of my assignments and then google it to see if I was right even though it complied and ran. The one I found had more lines of code then me and I wasn't sure if I left something out or why they had more code.
Do you guys know of any resources I can use to help me understand how everything works together I guess. I read my text book, search youtube, and read the fourm. I am just having a hard time picturing the program before I start.
I don't know if this is normal or not and any help would be great....
thanks guys
Related
I work on large enterprise java monolith code. I am new to the team and recently worked on a task, where my tech lead gave a quick guidance - "When you click this button on UI .... eventually this line of code will be executed. This is where you should start exploring"
Now that I have a specific point/line in code, i can put breakpoint and explore the whole flow after that using step-over/step-in. But if i need to know what happened BEFORE that line of code, how do i do it in eclipse?
Between Clicking that button on UI, and that line of code that my tech lead pointed me to, i need to know what all classes/methods were called. Is there a way to explore it in eclipse?
I apologize for a very basic question. Barely learning java and barely getting familiar with eclipse (just learned debugger and breakpoints yesterday).
I'm trying to learn how to make a 3d game engine in java following the tutorials from ThinMatrix (loving them so far). The problem is that one of the libraries from slick-utils seems to be missing? or corrupted? or not supported? I don't really know and I'm a total begginer in LWJGL, OpenGL and big java projects. I searched the error and nothing seems to work or the solutions are too problem specific, ie. related to an error in the coding rather than in the libraries.
There's not much code to show, I add the import in the class and the IDE prompts me with the error on the title: "The type org.newdawn.slick.opengl.Texture is not accessible".
On the comments of the video there was a "solution" that seems to have worked for at least 5 people, but for some reason it doesn't work for me.
The problem in the solution code (that avoids using slick-utils) is that there's a MemoryStack class that I can't seem to find anywhere, I serached the text that the IDE prompts me but it was fruitless...
This is what I searched for: "MemoryStack cannot be resolved", and for the life of me I can't find how to import, resolve, or do anything, really.
I'm really frustrated and google isn't my friend today, it seems.
I think there may be a problem with the LWJGL libraries that I'm using (I don't remember if I'm using LWJGL2 or 3, I believe 2 because the tutorials are from 2014 and 3 didn't exist yet? Idk), but I can't figure out what's the problem and all the hints that the IDE trows at me are leading me to flat out dead ends.
Thanks so much for reading, and helping me if you can! I can show the code but I don't think it matters that much, as the problem seems to come from the slick-utils library being corrupted or something, or that I don't understand how to add it properly to my project.
This should be the minimum reproducible example:
import org.newdawn.slick.opengl.Texture;
This is the first question I make so feel free to tell me if I'm missing something or whatever! :)
It's often the case that googling specific parts of a new error message will find other people who have had the same problem. When I google that class name, I find someone who had the exact same problem that you did, many years ago. The thread shows where to find the library which has that class.
https://gamedev.stackexchange.com/questions/35047/where-can-i-find-the-library-for-org-newdawn-slick-opengl-texture
First of all, sorry for the little broad question. Just want to get some general idea of direction.
Right now I have a big project almost completed. It has over 5 classes and under complicated designs and initially non-GUI, and I want to add a GUI interface to it. the GUI was supposed to fetch information when it runs and displays the running information. I reads about Swings and SwingWorker but it seems not plausible to put entire original program under Background thread. Right now I'm think putting GUI as a separated class but I don't know what's the best way to make connections. Any help is appreciated.
You can't simply "put" a GUI on any existing program, but you can possibly give a program a GUI user interface if the program was well constructed in a very modular fashion such that its UI is well separated from its logic code, for example if it was constructed in an M-V-C (model-view-control) fasion.
As always, the devil is in the details, none of which I can discuss at the moment given the limited information that we possess about your current project and needs. If you need further help, you will need to give us more information and code.
Hi guys i would like to do something that sounds simple enough. but i have no idea where to start looking.
i have search Google a bit and haven't found anything related to what i want to do.
what i want to do is run a java application in debug, and print out the lines of code that run in the debugging process.
same as with going through code step by step, each step will print the line of code it stepped into.
i really have no idea where to start looking of how to so this. can someone help in giving me a direction.
thank you.
this is following another question (maybe i wasn't clear enough last time and didn't get a response)
https://stackoverflow.com/questions/5506367/is-there-a-way-to-tap-into-eclipse-debugger-with-an-addon
What you describe sounds pretty similar to what the Eclipse code coverage tool EclEmma offers. It shows you exactly which code is executed during the process it is monitoring.
It sounds like there is a problem you are trying to solve with your proposed solution though. What is the underlying problem?
I am creating an Android application for musicians because I am in a band and see that I needed something of this sort, but could not find one that could do what I wanted, and was wondering how would someone be able to take input from a microphone. Turn that input into a file, and compare it with all of prerecorded sound files in a database to determine the note(s), or chord(s) that are being played. I'm not having trouble with getting the input, but I'm stumped on how one would be able to compare one sound file to another in terms of frequency or something of the kind. I haven't yet been able to find an answer that could really be used to help with the problem, nor have I been able to find a Java library that handles sound comparison. I know this is a extremely hard task to accomplish, but I also know it can be done and would like to have a go at it. If anyone could offer advice, a link to a library that could do such a thing, or even if someone already has done it and could show me exactly how to do it I would be extremely grateful. Thank you for your time, and any feedback is appreciated!
I recommend you check out the music-g API put out by Google. It's an open-source library written in Java that you can integrate with an Android app. It provides sound similarity metrics.
http://code.google.com/p/musicg/
While I don't think we can close as a duplicate (as it isn't, technically), please do a search before posting. What you are asking isn't specific to your platform, so much as the kinds of algorithms you need to implement.
From my post here: How can I do real-time pitch detection in .Net?
See these references: http://cnx.org/content/m11714/latest/
http://www.gamedev.net/community/forums/topic.asp?topic_id=506592&whichpage=1
Line 48 in Spectrum.cpp in the Audacity source code seems to be close to what you want. They also reference an IEEE paper by Tolonen and Karjalainen.
Basically, you need to start with some FFT, but it is much more complicated than that. I think you will find that the near-impossibility of this task (especially for a whole band, a non-clear audio input source, etc.) will make this project not worth it. Psychoacoustics, particularly with distorted guitars, will make this very difficult.
There are tons of really solid posts on this topic here: https://stackoverflow.com/search?q=pitch+detection