• Post Reply Bookmark Topic Watch Topic
  • New Topic

help me in coding please  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) An array A is of size N. Write a java method that jumbles all values in the array.
All possible permutations must be possible and chances for each possible
permutation must be equal. For example, size of array A is 3.A[0]=x,A[1]=y,A[2]=z.
Possible permutations are 3!.After jumbling elements, there would be equal chances
for each of xyz, yxz , ....to be in the array elements.
2) 50,000 html files are in a folder on a windows machine.Among them,content of some files
(not the file names)contain the sentence "SocioMaC-Jus' Follow!".Write a java program
to count the no of such files.
 
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, welcome to the ranch. We have a great policy at the ranch which is to let ranchers do their own homeworks. Try to do it, and whenever there's something specific you're stuck at, try asking again, at an appropriate forum. (which in that case would be the Beginners forum, not the JSP forum).
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!