Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Java help

leo16
leo16 


Please comment, my own solution is not working. I need to know what is going on. Provide solution as txt file only Attachments Tags Clarifications

Answers

NoReplymail

sudheer488
sudheer488 



I have executed the code as you can see in the screenshot & added the comments in the main method & included the test case.

Let me know incase of any doubts
Attachments
output.PNG (11 K) Download Preview

NoReplymail.txt (1 K) Download Preview
NoReplymail.getString(s1); String s2 = NoReplymail.getRndStr(intro,test); NoReplymail.getString(s2); String s3 = NoReplymail.getRndStr(ticket,test); NoReplymail.getString(s3); String s4 = NoReplymail.getRndStr(goodbye,test); NoReplymail.getString(s4); } private static String getRndStr(String[] s, int test) { // generates a random number from count of the array

Screenshots
Screenshot
Purchase Answer