Be on schedule. Score better.


Solved! Get answer or ask a different Question 18082

Subject: Crossword in java from a txt

I am new in programming and the following is a java project that must be done. Sorry for bad english (translated in english by myself). The requirements confuse me.

How the format of eah class will be because getting errors

The crossword0.txt file










  • Attachment 1
  • Attachment 2

Java projectThe crosswordo txt containas the solution of a crossword All letters are in capital . The first twoumbers indicate the size EXT .JVM# # # #HERBHM# # THY # AHHHTHIBOOEABOOLEAN# # D # # # #pictureBlack blacks are represented by # .Supposed that the text file is according to our needs and no check has to be doneWrite a class called Crossword which contains :An integer called lines that saves the rows of the crosswordAn integer called columns that saves the columns of the crosswordthat called grid which saves the characters that the ce crossword contains , onecharacter in each position . Each character it could be only capital letters ( A – 2 ) or the# which indicates the black black of crosswordA public constructor Crossword ( String file Name ) filename is a string which containsame of a text file ( with without the file pathD / Documents / crosswords txt . The constructor’s method will open the text file andread it line by line , doing the followingThe first integer will be lines and the second integer will bethe columns. Creates the array grid with size lines ) x / columnsa Read one by one the next lines , convert them to char using the to Char Array ( )asition ofmethod , and save each character in the corresponding position of the arraygridA public void method called print which will shows in the computer screen thecrossword as showed in picture i without the fifirst two lineWrite a main class which will contain the mainprogram , creates the object of the classand shows on the screen the crosswordAfter doing these modify the Cross Word class as follow1 . Extend class with a new method called better Print which will replace the # withspace . So the crossword will looks like the item in picture 2 Use override in order ofkeep using the print( method polymorphism

Looking for a Similar Assignment? Our ENL Writers can help. Use the coupon code FIRST15 to get your first order at 15% off!
Students Love Us

Hi there! Click one of our representatives below and we will get back to you as soon as possible.

Chat with us on WhatsApp