Bonjour,

J'ai un soucis concernant mon code :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
do {
                            Integer maxx = null;
                            Integer minn = null;
                            Integer fra = null;
                            if (json != null) {

                                JSONObject f = new JSONObject(json);

                                String frai = f.getString("frais");

                                String min = f.getString("min");
                                String max = f.getString("max");

                                 minn = Integer.parseInt(min);
                                 maxx = Integer.parseInt(max);

                                 fra = Integer.parseInt(frai);

                            } if (montant >= minn && montant <= maxx) {
                                fi = fra;
                            }

                        } while (true);

                        int to = montant + fi;
Voici l'erreur :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
Error:(231, 29) error: unreachable statement
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.