CodeGym /Java Course /Java Core /Practice with Reader/Writer

Practice with Reader/Writer

Java Core
Level 9 , Lesson 3
Available

"Hello, Amigo!"

12
Task
Java Core, level 9, lesson 3
Locked
TableAdapter
Edit the TableAdapter class so that it adapts the ATable interface to the BTable interface. The getHeaderText method should return "[] : ". For example, "[Amigo] : DashboardTable".
12
Task
Java Core, level 9, lesson 3
Locked
Adapter
Use the AdapterFileOutputStream class to adapt FileOutputStream to the new AmigoStringWriter interface.
20
Task
Java Core, level 9, lesson 3
Locked
Adapting multiple interfaces
Adapt IncomeData to the Customer and Contact interfaces. The adapter class is IncomeDataAdapter. Initialize countries before running the program. Mapping between country codes and country names: UA Ukraine US United States FR France If necessary, pad phone numbers with zeros to get 10 digits long (s
20
Task
Java Core, level 9, lesson 3
Locked
Yet another adapter
Adapt Scanner to the PersonScanner interface. The adapter class is PersonScannerAdapter. Create a private final Scanner field called fileScanner in the adapter class. Initialize the field in a constructor with one Scanner parameter. The file stores data in the following format: John Michael Peterson
20
Task
Java Core, level 9, lesson 3
Locked
Reinforce the adapter
Adapt Customer and Contact to RowItem. The adapter class is DataAdapter. Initialize countries before running the program. Mapping between country codes and country names: UA Ukraine US United States FR France
Comments (19)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Evgeniia Shabaeva Level 33, Budapest, Hungary
17 September 2024
Really valuable tasks for learning, thank you!
Daniel Ketcheson Level 28, Canada
8 December 2023
Let's Gooo!
Jurij Thmsn Level 29, Flensburg, Germany
17 April 2021
I still have to look up SimpleDateFormat every time I use it even though I used it multiple times. I somehow can't get comfortable with it. I feel like I can write the Adapter pattern now, as long as someone tells me for which to which interfaces. I couldn't figure out by myself ...
Oregano Level 24, Warsaw, Poland
19 May 2020
I got really frustrated with validation for these tasks. When the task didn't walidate there was some kind of information what was wrong but the actual error was sth completely different...
Liliane Top Level 24, Amsterdam, Netherlands
9 January 2021
I had the same. It kept saying that there was something wrong with the sequence of names but it was the parsing of the Date. Maybe CodeGym can look into this please!!
Fadi Alsaidi Level 34, Carrollton, TX, USA
4 April 2020
Task one tip: there is a space between the two string parts [<username>] space ":" space <table name>
BlueJavaBanana Level 37
29 May 2020
Nice catch!
MaGaby2280 Level 41, Guatemala City, Guatemala
5 March 2020
Great tasks for the brain!
Facundo Villarroel Level 20, Berlin, Germany
24 February 2020
So funny to see that less than 300 people has completed each of this tasks
Dave Andrea Level 41, Canada
6 April 2020
It makes me feel special to see that number getting smaller and smaller hahaha
Tian Pro Level 23, Cape Town, South Africa
17 February 2020
this is truly getting harder and harder, struggling to keep up but meh :D
Almaz Temirkanov Level 24, Bishkek, Kyrgyzstan
30 September 2019
#4

Date date = new SimpleDateFormat("MM dd yyyy", Locale.ENGLISH).parse(parts[3]+" "+ parts[4]+" "+parts[5]);
            return new Person(parts[1], parts[2], parts[0], date);
JeRiF94 Level 22, Baku, Azerbaijan
25 July 2019
DONE!