You need to use Google to find information about different algorithms, as they are not specific to Java. And for specific Java questions Google should also lead you to the documentation pages, such as Trail: Sound (The Java™ Tutorials)[^].
I need help understanding the A* algorithm and how to code it
Following provides examples in google
A* algorithm java
Just as a suggestion if you have never programmed before then doing what you are doing is is going to be rather ambitious. So you should expect that it will be difficult. Focusing on one part and making it as simple as possible, with the goal of making it better in the future might be more rewarding especially if the goal it to learn how to program.
1. Decide which shapes to use
2. Write some UI code to display the shapes
3. Decide how a 'number' gets mapped to a shape.
4. Write some UI code that accepts number
5. Build a app that encapsulates the above and hooks it together.
However what can happen is that the server, not the browser, can refuse to serve up any data (whatever that might be) after logout occurs. Should however already be doing that. If it is not then that is a problem with the server not the browser code.
I have a wav file that is supposed to play a sound when my image is clicked. The image only plays the sound when clicked if the wav file is within its while loop. But if the wav is within the while loop, my class runs out of memory... Has anyone ever had this problem? I would include the snippet of it but it would be useless without the program as a whole (138 lines) which is against discussion rules. I am also a new programmer.
In the next code, I've made a singly linked list.
In the AddNODE line(obj1) I called the AddNODE function, function which receives as parameter an object obj1 of type NODE.
The problem is the AddNODE(NODE newNode) function.
This newNODE must be an object or I think it would be like this.
Can you help me ?
private NODE next;
public Persons box = new Persons();
public NODE(String firstName, String secondName, String CNP, String Email)
box.firstName = firstName;
box.secondName = secondName;
box.CNP = CNP;
box.Email = Email;
public NODE GetNext()
publicvoid SetNext(NODE next)
this.next = next;
private NODE head;
head = null;
return head == null;
publicvoid AddNODE(NODE newNode)
NODE temp = null;
head = temp = newNode;
temp = newNode;
NODE temp = head;
while (temp != null)
System.out.print("\n First Name : " + temp.box.firstName);
System.out.print("\n Second Name : " + temp.box.secondName);
System.out.print("\n CNP : " + temp.box.CNP);
System.out.print("\n Email : " + temp.box.Email);
temp = temp.GetNext();
publicstaticvoid main(String args)
SinglyLinkedList ptr = new SinglyLinkedList();
NODE obj1 = new NODE("Dragu", "Stelian", "1811226284570", "firstname.lastname@example.org");
NODE obj2 = new NODE("Popescu", "Mircea", "1891226284462", "email@example.com");
1. Research the scanner. Learn about the APIs that exist to interface to it.
2. Create Java code to use the API in 1 which is appropriate to the app that needs to use it.
3. Create Java code for the database that is appropriate to the app that needs to use it.
4. Wire 2 and 3 into the app.
Could be other steps as well, such as if you have no idea how to do 3 then there would be another step to investigate various methodologies to use a database via Java.
Forgot to mention that what you store in the database actually depends on the data that the scanner returns. But regardless of the form it will be likely be 'binary' so the database will need a column that specifically stored binary data. So if you do not know the difference there you will need to investigate.