My problem is how do I make the tmpTutor.getId() and tmpSubject.getId() mehtod static so that I could implement in my controller ?
Cos right now, I can only insert the tutorDAOImpl when I do the preparedStatement for tutor.
When I want to do the associateTutorToSubject, I can't do it the way like yo said cos tutorDAOImpl and SubjectDAOImpl are both separate classes. And so there is no way for the controller to read the getId from the tutorDAOImpl etc.
Hi! I am learning servlet, can someone kind enough to explain where to place the username, password, address, and port to be used in connection to a MySQL database in WAMP instead of placing it in the code? So that if the address of MySql or server is changed I will not have to change the code. Take the succeding as an example, "jdbc:mysql://localhost:3306/sonoo","root","root"). I am thinking if they are written in the code and they will be changed like the password for mysql will be changed, I will have to change the code. Thus, where will I put the localhost, 3306, sonoo, root, and root so that I will not change the code everytime the address and password, etc. will change. I am using netbeans and apache tomcat. Thank you so much.
No, it should be 5. Since this is a simple variable, it is passed by value, so each called method gets a copy of the variable a. When they try to change it they only change the copy they have received, not the original variable. You should go to The Java™ Tutorials[^], especially section Passing Information to a Method or a Constructor[^] which explains it in detail.
Dear Richard your comment help me a lot thank you for guide me to the important topic and basic point that I really miss , you know what I spend 3 month reading with java when I reach recursion it was setback for me I shocked when book give example with mergesort, he build array on Fantasy way that I got really confuse and frustrated that i'm able to follow so I just back for reading previous chapters .
This is my first topic and I will search for other forums as well that might be more into ANN's. As the subjects indicates I have a huge interest in ANN's.
I would like to find people that are intereseted in ANN's and want to code or is coding already in Java and learn more about code implementation, testing and experimenting with ANN's.
I have built my own "library" and implemented it partially. It solves the XOR problem by using LMS algorithm for updating weights and now I am trying to implement the Backpropagation algorithm. Which is a pain in the ass becuase of the way I am storing stuff in my arrays. Meaning that calculating the backpropagation-deltas for the hiddenlayer is a bit of a challenge right now and that is where I am.
I have also creted classes that are objects such as Layer.java, Neuron.java and Weight.java. I will rewrite my code so that I use these classes as Layer, Neuron and Weight instead of double and int.
My bachelor topic had to do with topology mutating ANN's that use a simple genetic mutation of the weights to update the network and also the topology; a kind of placticity.
I am up for sharing this on GitHub and further developing it together with someone that also has a huge interest in this stuff! My goal is to reach to the point where a reward-based ANN, combined with this new code structure I am working on and with the code from my bachelor project. For example I would like to try to make ANN's cooperate with other ANN's. So that one ANN acts as visual input while another ANN acts as a generalization network trying to understand and categorize what is "seen".
So is anyone interested in helping and discussing this and coming with ideas and challenges? Or do you have any thoughts about this?
Also if you know any forum that is more suited for ANN then please suggest it! I would be very happy!
Last Visit: 31-Dec-99 19:00 Last Update: 5-Dec-23 11:42