|
My ArrayList is above all methods ... I've created it
here I just posted this method because I thought you'll understand that I created it
So could you explain how to use the
Collections.sort[^]
?
and where to put this? inside the for loop
|
|
|
|
|
Costea Cornea wrote: So could you explain how to use the
Collections.sort[^] ?
and where to put this? inside the for loop What Richard meant was, that you should only call the sort function on the ArrayList object of yours. Also, you have not shown the structure of your PriorityNote object, does it contain a priority field in itself, or do you assign a value on runtime? If that is a built in field there, then just call the sort function, and to even control how an object is sorted, read java - Sort ArrayList of custom Objects by property - Stack Overflow
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Follow the link I gave you, it explains it there. You do not need a loop since this method sorts the list in place.
|
|
|
|
|
I don't have a field called private Priority_Notes , it shouldn't be it's the task from the class diagram
Ok here I'll give you my fields to see which I have
private int numberOfNotes;
private ArrayList<Note>notes;
and that's all fields which I have
|
|
|
|
|
|
how to make a chat application in java on wan?
|
|
|
|
|
|
hi
I have created a java application(exe).
Now when I try to execute the application from a directory whose name is in unicode(Japanese),it crashes.
I could not figure out the problem ,its showing packager.dll issue.
Please help..
|
|
|
|
|
Since we have no idea where the crash occurs, or what code it is trying to execute, it is impossible to guess.
|
|
|
|
|
Application developed by javafx while build the application it will create this three file with the application exe
msvcp100.dll
msvcr100.dll
packager.dll
then double click the .exe application crash shows the error like
Problem Event Name: APPCRASH
Application Name: SimulatorEndUser.exe
Application Version: 0.0.0.0
Application Timestamp: 55761984
Fault Module Name: packager.dll
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 55761993
Exception Code: c0000005
Exception Offset: 000129a0
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
|
|
|
|
|
Benjamin Bruno wrote: Exception Code: c0000005 means you are trying to access an address that is not in your address space. You will need to use the debugger to find the actual code that causes the error.
|
|
|
|
|
we are working on visa give me a suggetion , and sample code to call the POSLink class?
|
|
|
|
|
|
thanks you for your post is very helpful . I wonder if you could send me your java code for implementing this algorithm. My email address is lamis.guessoum@yahoo.fr Thanks a lot!
|
|
|
|
|
Who are you addressing this to?
|
|
|
|
|
Anyone that is silly enough to reply.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
|
I see two equally meaningless posts about "a priori" and "bayes". It seems that an assignment in the statistics / applied maths course has just been given and what does everybody do? Look through their course notes, refer to a text book or do some searching on Google, nope... ask Code Project!
|
|
|
|
|
Seems to be a growing standard for "how can I get my homework done".
|
|
|
|
|
sir, please can any one tell me how "Naive Bayes Algorithm" implemented in java or web application project.
and how it work?
|
|
|
|
|
Google will find you the details.
|
|
|
|
|
I have a really hard professor in my Data structures class. I wrote the program to construct the tree from postfix to infix expression. But the problem is I also need to produce an output file to show registers.
Example of the infix expression:
((3-(5+9))/(2*3))
Example of the output file:
Add R0 5 9
Sub R1 3 R0
Mul R2 2 3
Div R3 R1 R2
Any help would be greatly appreciated.
Thanks
|
|
|
|
|
Member 13106249 wrote: Any help would be greatly appreciated. Exactly what help are you asking for?
|
|
|
|
|
Hello,
I am all new to java trying to learn same basic and make same little application.
I am stuck on beginning ) Can't make connection work from java app.
I make connection to server from services (there I may see database).
DB - TEST
ID - int
user - nchar(10)
pass - nchar(10)
But whan trying to run basic app it show
run:
Got an exception!
com.microsoft.jdbc.sqlserver.SQLServerDriver
BUILD SUCCESSFUL (total time: 0 seconds)
Code is
package javaapp;
import java.sql.*;
public class javaapp
{
public static void main(String[] args)
{
try
{
String myDriver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
String myUrl = "jdbc:sqlserver://core3:1433;databaseName=test";
Class.forName(myDriver);
Connection conn = DriverManager.getConnection(myUrl, "test", "test");
String query = "SELECT * FROM test";
Statement st = conn.createStatement();
ResultSet rs = st.executeQuery(query);
while (rs.next())
{
int id = rs.getInt("id");
String Ime = rs.getString("ime");
String Pasw = rs.getString("pass");
System.out.format("%d, %s %s", id, Ime, Pasw);
}
st.close();
}
catch (Exception e)
{
System.err.println("Got an exception! ");
System.err.println(e.getMessage());
}
}
}
Any tip will be welcome.
I using netbeans 8.2 and have JRE 1.8.0_121
JDBC used sqljdbc42.jar
|
|
|
|
|
You need to use the debugger to identify which statement causes the exception, and also try and see if there is more information available in the Exception object. The details provided do not give any clue as to what is wrong.
|
|
|
|