Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Ques on 1 Create the class Languages having a main ( ) . Create an array of Languages: English, German, French, Spanish, Italian, Portuguese, Greek

Queson 1
Create the class Languages having a main().
Create an array of Languages: English, German, French, Spanish, Italian, Portuguese, Greek
Using appropriate stream and filter methods find and output:
a) All languages ordered alphabecally, in uppercase
b) The language that is the shortest
d) An array of substrings made of the 3rd and the 4th characters of every language (example gl)
e) An array of number of characters from each language, sorted ascending
Queson 2
Create a class ClickGenerator having a main().
In main() create a buton Click and a label to display the number of the clicks. Add a buton Reset
that sets the text of the label to 0 when clicked. The two butons and the label should be added to a
panel that should be added to a frame.
Add the AconListeners to make the butons funconal.
Use Swing and make sure you add the line of code to close the frame.
Coding standards: All the coding standards and best programming practices learn should be
followed. Javadocs for the classes (just above the class definition) and for each of the functions.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions