Click here to Skip to main content
14,451,428 members
   

Java

 
GeneralRe: Find and query files in a directory in date format yyymmdd Pin
hm918-Jan-18 2:29
Memberhm918-Jan-18 2:29 
GeneralRe: Find and query files in a directory in date format yyymmdd Pin
Richard MacCutchan18-Jan-18 2:45
communityengineerRichard MacCutchan18-Jan-18 2:45 
GeneralRe: Find and query files in a directory in date format yyymmdd Pin
hm918-Jan-18 2:55
Memberhm918-Jan-18 2:55 
GeneralRe: Find and query files in a directory in date format yyymmdd Pin
Richard MacCutchan18-Jan-18 3:54
communityengineerRichard MacCutchan18-Jan-18 3:54 
QuestionWhat is wrong with this java code, why is it not printing Factorial? Pin
Member 1362428615-Jan-18 11:02
MemberMember 1362428615-Jan-18 11:02 
AnswerRe: What is wrong with this java code, why is it not printing Fibonacci? Pin
Richard MacCutchan15-Jan-18 22:45
communityengineerRichard MacCutchan15-Jan-18 22:45 
GeneralRe: What is wrong with this java code, why is it not printing Fibonacci? Pin
Member 1362428616-Jan-18 3:07
MemberMember 1362428616-Jan-18 3:07 
GeneralRe: What is wrong with this java code, why is it not printing Fibonacci? Pin
Richard Deeming16-Jan-18 4:07
communityengineerRichard Deeming16-Jan-18 4:07 
Your calculation is still wrong.

f(1) === 1, but your code returns 2.

And f(n) === n * f(n-1), but your code is returning f(n-1) * f(n-2).

Also, unless this is a homework question to test your ability to write recursive functions, it's much more efficient to use a loop to calculate factorials or the Fibonacci sequence.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


AnswerRe: What is wrong with this java code, why is it not printing Factorial? Pin
vishaljamdagni29-Jan-18 19:58
professionalvishaljamdagni29-Jan-18 19:58 
QuestionJava Array Out Of Bound Issue Pin
Akshit Gupta13-Jan-18 6:50
MemberAkshit Gupta13-Jan-18 6:50 
AnswerRe: Java Array Out Of Bound Issue Pin
phil.o13-Jan-18 7:20
mvephil.o13-Jan-18 7:20 
QuestionRemove All Items in nested HashMap Pin
Member 1354659210-Jan-18 10:12
MemberMember 1354659210-Jan-18 10:12 
AnswerRe: Remove All Items in nested HashMap Pin
Richard MacCutchan11-Jan-18 0:27
communityengineerRichard MacCutchan11-Jan-18 0:27 
GeneralRe: Remove All Items in nested HashMap Pin
Member 1354659211-Jan-18 1:04
MemberMember 1354659211-Jan-18 1:04 
QuestionEclipse, windows disappear Pin
C-P-User-310-Jan-18 2:41
MemberC-P-User-310-Jan-18 2:41 
AnswerRe: Eclipse, windows disappear Pin
Richard MacCutchan10-Jan-18 2:58
communityengineerRichard MacCutchan10-Jan-18 2:58 
Questionfor fingerprint code in java Pin
Member 136066264-Jan-18 2:25
MemberMember 136066264-Jan-18 2:25 
AnswerRe: for fingerprint code in java Pin
Richard MacCutchan4-Jan-18 3:24
communityengineerRichard MacCutchan4-Jan-18 3:24 
QuestionConnection Issue between Netbeans 8.2 and SQL Server 2014 Pin
Member 1360161431-Dec-17 21:23
MemberMember 1360161431-Dec-17 21:23 
SuggestionRe: Connection Issue between Netbeans 8.2 and SQL Server 2014 Pin
Richard MacCutchan31-Dec-17 23:51
communityengineerRichard MacCutchan31-Dec-17 23:51 
AnswerRe: Connection Issue between Netbeans 8.2 and SQL Server 2014 Pin
jschell1-Jan-18 7:57
Memberjschell1-Jan-18 7:57 
QuestionJava Project Pin
Member 1359041122-Dec-17 8:42
MemberMember 1359041122-Dec-17 8:42 
AnswerRe: Java Project Pin
Richard MacCutchan22-Dec-17 22:13
communityengineerRichard MacCutchan22-Dec-17 22:13 
GeneralRe: Java Project Pin
barrontD2-Jan-18 20:28
MemberbarrontD2-Jan-18 20:28 
QuestionJava Pin
zakarie mukhtar abdi21-Dec-17 21:07
Memberzakarie mukhtar abdi21-Dec-17 21:07 

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.