Question: We must return a value(reference) like QQChose which corresponds to a element of the table if its the same, else Rien if its not the

 We must return a value(reference) like QQChose which corresponds to a

element of the table if its the same, else Rien if its

We must return a value(reference) like QQChose which corresponds to a element of the table if its the same, else Rien if its not the same

So I add a getter of the value on class QQchose() if a_element is the same that a element on the table

But I still get this error

I don't understand why

Add Configuration... I File Edit View Navigate Code Analyze Refactor Build Run Tools VCS Window Help Demo3(ArrayList) - QQChose.java [TypeGenerique] Demo3(ArrayList) TypeGenerique sro QQChosem get_valeur ARien.java (C) Peutetre.java Rien.java QQChose.java GenPrincipale.java x public class QQChose extends Peutetre { 2 private I valeur; public QQChose I a_valeur ) { _valeur = a_valeur; } 3 3 4 5 6 1 related problem public I get_valeur() { return _valeur; } 8 9 A A 10 11 of 12 13 14 of 15 16 17 of 18 19 20 21 public boolean estQQChose(){ return true; } public boolean estRien() { return false; } public T qQChose() throws Arien{ return _valeur; } } 6 "CodeTogether" plugin update available Update Plugin Settings... Ignore this update Favorites :. Structure Kite engine required Kite autocomplete requires the Kite Engine to provide completions and documentation. Please install it to use Kite. Install DE TODO e Problems Terminal O "CodeTogether" plugin update available // Update // Plugin Settings... // Ignore this update (today 14:16) Taper ici pour rechercher O 2 Event Log 9:6 CRLF UTF-8 4 spaces 1 FRA 20:37 CMS 2021-01-31 . P8 Demo3(ArrayList) - GenPrincipale.java [TypeGenerique] Add Configuration... file Edit View Navigate Code Analyze Refactor Build Run Tools VCS Window Help Demo3(ArrayList) TypeGenerique sro GenPrincipales trouverElement ARien.java (C) PeutEtre.java Rien.java QQChose.java C GenPrincipale.java import java.util.*; 2 public class GenPrincipale { 01 A 17 3 v CodeTogether 3 4 5 public static void main(String[] args) { 6 7 QQChose qqChose = new QQChose( a_valeur: 50); Rien rien = new Rien(); 8 A } 10 11 12 13 @ 14 public static Peutetre trouverElement(T[] a_tableau, I a_element ) { 15 QQChose qqc = null; 16 17 for(int i = 0; i (a_element); a_element = 990.get_valeur(); } else{ new Rien (); } O "CodeTogether" plugin update available Update Plugin Settings... Ignore this update o * Favorites 1. Structure 25 26 27 } return (Peutetre) a_element; Kite engine required Kite autocomplete requires the Kite Engine to provide completions and documentation. Please install it to use Kite. Install 28 DE TODO e Problems 2. Terminal O "CodeTogether" plugin update available // Update // Plugin Settings... // Ignore this update (today 14:16) Taper ici pour rechercher 2 Event Log 21:46 CRLF UTF-8 4 spaces 1 FRA 20:37 CMS 2021-01-31 . o P8

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!