Click here to Skip to main content
15,906,569 members
Home / Discussions / Java
   

Java

 
GeneralRe: Find and query files in a directory in date format yyymmdd Pin
hm917-Jan-18 23:13
hm917-Jan-18 23:13 
GeneralRe: Find and query files in a directory in date format yyymmdd Pin
Richard MacCutchan17-Jan-18 23:16
mveRichard MacCutchan17-Jan-18 23:16 
GeneralRe: Find and query files in a directory in date format yyymmdd Pin
hm917-Jan-18 23:29
hm917-Jan-18 23:29 
GeneralRe: Find and query files in a directory in date format yyymmdd Pin
Richard MacCutchan17-Jan-18 23:32
mveRichard MacCutchan17-Jan-18 23:32 
GeneralRe: Find and query files in a directory in date format yyymmdd Pin
hm917-Jan-18 23:59
hm917-Jan-18 23:59 
GeneralRe: Find and query files in a directory in date format yyymmdd Pin
Richard MacCutchan18-Jan-18 0:32
mveRichard MacCutchan18-Jan-18 0:32 
GeneralRe: Find and query files in a directory in date format yyymmdd Pin
hm918-Jan-18 1:29
hm918-Jan-18 1:29 
GeneralRe: Find and query files in a directory in date format yyymmdd Pin
Richard MacCutchan18-Jan-18 1:45
mveRichard MacCutchan18-Jan-18 1:45 
GeneralRe: Find and query files in a directory in date format yyymmdd Pin
hm918-Jan-18 1:55
hm918-Jan-18 1:55 
GeneralRe: Find and query files in a directory in date format yyymmdd Pin
Richard MacCutchan18-Jan-18 2:54
mveRichard MacCutchan18-Jan-18 2:54 
QuestionWhat is wrong with this java code, why is it not printing Factorial? Pin
Member 1362428615-Jan-18 10:02
Member 1362428615-Jan-18 10:02 
AnswerRe: What is wrong with this java code, why is it not printing Fibonacci? Pin
Richard MacCutchan15-Jan-18 21:45
mveRichard MacCutchan15-Jan-18 21:45 
GeneralRe: What is wrong with this java code, why is it not printing Fibonacci? Pin
Member 1362428616-Jan-18 2:07
Member 1362428616-Jan-18 2:07 
GeneralRe: What is wrong with this java code, why is it not printing Fibonacci? Pin
Richard Deeming16-Jan-18 3:07
mveRichard Deeming16-Jan-18 3:07 
AnswerRe: What is wrong with this java code, why is it not printing Factorial? Pin
vishaljamdagni29-Jan-18 18:58
professionalvishaljamdagni29-Jan-18 18:58 
QuestionJava Array Out Of Bound Issue Pin
Akshit Gupta13-Jan-18 5:50
Akshit Gupta13-Jan-18 5:50 
AnswerRe: Java Array Out Of Bound Issue Pin
phil.o13-Jan-18 6:20
professionalphil.o13-Jan-18 6:20 
QuestionRemove All Items in nested HashMap Pin
Member 1354659210-Jan-18 9:12
Member 1354659210-Jan-18 9:12 
AnswerRe: Remove All Items in nested HashMap Pin
Richard MacCutchan10-Jan-18 23:27
mveRichard MacCutchan10-Jan-18 23:27 
GeneralRe: Remove All Items in nested HashMap Pin
Member 1354659211-Jan-18 0:04
Member 1354659211-Jan-18 0:04 
QuestionEclipse, windows disappear Pin
C-P-User-310-Jan-18 1:41
C-P-User-310-Jan-18 1:41 
AnswerRe: Eclipse, windows disappear Pin
Richard MacCutchan10-Jan-18 1:58
mveRichard MacCutchan10-Jan-18 1:58 
Questionfor fingerprint code in java Pin
Member 136066264-Jan-18 1:25
Member 136066264-Jan-18 1:25 
AnswerRe: for fingerprint code in java Pin
Richard MacCutchan4-Jan-18 2:24
mveRichard MacCutchan4-Jan-18 2:24 
QuestionConnection Issue between Netbeans 8.2 and SQL Server 2014 Pin
Member 1360161431-Dec-17 20:23
Member 1360161431-Dec-17 20:23 
Hi, I have a problem when running my project in NetBeans 8.2 and SQL server express 2014.
After doing the programming it shows the result as below

" com.microsoft.sqlserver.jdbc.sqlservExeption Login failed for user ''. ClientConnectionid: d963d05c-a68b-49c0-a7e9-88b829c96174 "

Can anybody help me with this issue, please?

Hehreby the quoding that i key in
"
try {
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
String url= "jdbc:sqlserver://localhost:1433;"
+ "databaseName = testdb"
+ "user = sa; password = 12345";
Connection con = DriverManager.getConnection(url);
String sql = "Select* from test where username = ? and password =?";
PreparedStatement pst = con.prepareStatement(sql);
pst.setString (1, username.getText());
pst.setString (2, passwrod.getText());

ResultSet rs = pst.executeQuery();

if (rs.next())
{
JOptionPane.showMessageDialog(null, "ok, it match");
}

else
{
JOptionPane.showMessageDialog(null, "not ok, try again!!");
username.setText("");
passwrod.setText("");
}

con.close();
}

catch (Exception e)
{
JOptionPane.showMessageDialog (null,e);
}

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.