Promozione
CodeGym University
Apprendimento
Corso
Compiti
Sondaggi e quiz
Giochi
Aiuto
Agenda con promemoria
Comunità
Utenti
Forum
Chat
Articoli
Storie di successi
Attività
Recensioni
Abbonamenti
Tema chiaro
Aiuto nei compiti
Recensioni
Informazioni
Inizia
Inizia il corso
Inizia il corso ora
Tutte le domande
Fai una domanda
Tutte le missioni
Tutti i livelli
Qualsiasi stato
Domande sui compiti
Attuali
Anonymous #11524554
Livello 28
Domanda sul compito
Refactoring (part 6)
Multithreading Java
,
Livello 5
,
Lezione 16
Discussione in corso
What is the problem?
help!
09.09.2024
42
viste
3
commenti
0
Anonymous #11525567
Livello 13
Brescia
Domanda sul compito
Positive and negative numbers
Sintassi Java
,
Livello 4
,
Lezione 7
Discussione in corso
Why is it wrong?
I tried putting negative, positive and 0 numbers, the code seems to work but it still gives me incorrect
25.08.2024
25
viste
1
commento
0
Anonymous #11553958
Livello 2
Verona
Nuova
Why the code is wrong?
In the print method, display the passed string 4 times. Each time, on a new line. Requisiti: • The program should display text on the screen. • The main method should not call System.out.println or System.out.print. • The print method should display the text on the screen. • The main method sh
23.08.2024
19
viste
0
commenti
0
Anonymous #11553958
Livello 2
Verona
Domanda sul compito
Quadrato di un numero
Sintassi Java
,
Livello 1
,
Lezione 8
Nuova
non capisco la soluzione dell'esercizio.
nell'esercizio viene posta l'istruzione : System.out.println(quadr(5)); mentre il resto dell'esercizio è: package it.codegym.task.task01.task0127; /* Quadrato di un numero */ public class Solution { public static void main(String[] args) { System.out.println(quadr(5)); } pub
20.08.2024
15
viste
0
commenti
0
Anonymous #11553958
Livello 2
Verona
Domanda sul compito
Quadrato di un numero
Sintassi Java
,
Livello 1
,
Lezione 8
Nuova
calcolo di un quadrato di numero con classi ed oggetti.
public static void main(String[] args) { //scrivi qui il tuo codice int numero = 5; System.out.println(numero); } public static int quadr(int a) { return a * a; } } Scrivi un programma che visualizza il quadrato di 5 sullo schermo.
20.08.2024
15
viste
0
commenti
0
Anonymous #11528631
Livello 16
Naples
Domanda sul compito
Number of letters
Sintassi Java
,
Livello 10
,
Lezione 11
Discussione in corso
I don't know what I wrong, the code it's work but requirement are wrong
Require • The program must read data from the keyboard 10 times. IT'S OK • The program should display text on the screen. WRONG • The displayed text should contain 26 lines. WRONG • Each line of output shou
26.06.2024
80
viste
2
commenti
0
Anonymous #11525567
Livello 13
Brescia
Domanda sul compito
Task about algorithms
Sintassi Java
,
Livello 5
,
Lezione 12
Risolta
I don't know what I'm doing anymore
in my mind if a number smaller than 0 was entered, the variable b would increase, in the final case if the variable b had increased then a number smaller than or equal to 0 was inserted and therefore it did not have to print anything currently, however, I only find number 6 printed and not the ma
17.06.2024
76
viste
3
commenti
2
Anonymous #11525567
Livello 13
Brescia
Domanda sul compito
Adding
Sintassi Java
,
Livello 4
,
Lezione 16
Risolta
Sum not working?
I don't know why the sum doesn't work, it only prints 14 import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int numeri=0;
14.06.2024
56
viste
2
commenti
0
Gabriele
Livello 5
Padova
Domanda sul compito
Even numbers
Sintassi Java
,
Livello 4
,
Lezione 13
Discussione in corso
The text of the exercise wants the numbers from 1 to 100 "Even"...
my solution. public static void main(String[] args) throws IOException { for (int iterator = 1; iterator <= 100; iterator++) // Check if the number is even if (iterator % 2 == 0) { // Print the even number System.out.println(iter
24.05.2024
46
viste
1
commento
0
Succo
Livello 13
Domanda sul compito
Arithmetic mean
Sintassi Java
,
Livello 5
,
Lezione 5
Discussione in corso
Why sum has to be a double?
if we're calculating the mean of some integers, only the variabile "mean" should be double
20.04.2024
49
viste
1
commento
0
Succo
Livello 13
Domanda sul compito
Streets and houses
Sintassi Java
,
Livello 7
,
Lezione 4
Discussione in corso
i can't meet last requirement
Why System.out.print doesn't work with the "null" in the ternary operator?
26.04.2024
37
viste
1
commento
0
Succo
Livello 13
Domanda sul compito
Going national
Sintassi Java
,
Livello 8
,
Lezione 11
Discussione in corso
What's wrong?
It doesn't work, but I don't know why
30.04.2024
40
viste
1
commento
0
Anonymous #10841110
Livello 4
Discussione in corso
hi, i'm italian, can someone help me? .. when i put the italian language the lessons remain in english, please help
please tell me how to fix it,or i cant learn programming
03.10.2021
361
viste
2
commenti
0
Amo programmare
Livello 32
Domanda sul compito
Crossing the road blindly
Sintassi Java
,
Livello 4
,
Lezione 4
Discussione in corso
I've tested tons of numbers and I don't understand why it fails the task test
Hi, I'm hoping that somone could help me understand why my code is not passing the test. I know that it's overly complicated and that there are more elegant solutions out there, but this was the first solution that I came up with on my own. In my mind it should work but I don't know why it doesn't
04.08.2022
362
viste
2
commenti
0
Mrrobot993
Livello 9
Domanda sul compito
Sorting three numbers
Sintassi Java
,
Livello 4
,
Lezione 6
Discussione in corso
Why not working?
I check step to step the solution also with paper but the system return error. Why?
05.10.2021
323
viste
2
commenti
0
Gino
Livello 41
Milan
Domanda sul compito
Rounding numbers
Core Java
,
Livello 8
,
Lezione 11
Discussione in corso
the output seems correct but does not validate
some advice?
07.01.2024
165
viste
2
commenti
0
Federico Russo
Livello 20
Milano
Domanda sul compito
Ascending numbers
Sintassi Java
,
Livello 6
,
Lezione 11
Discussione in corso
what Is missing? anyone can help me? thank you!!
public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); //write your code here int[] nu = new int[5]; for(int i = 0; i < 5; i++){ nu[i] = Intege
07.11.2023
262
viste
3
commenti
0
Federico Russo
Livello 20
Milano
Discussione in corso
what Is missing?
hello everyone! what Is missing in my code? i cant satisfy last two targets of the task. anyone can help me? thank you!!!!
07.11.2023
99
viste
0
commenti
0
Pandonio
Livello 7
Domanda sul compito
Sorting three numbers
Sintassi Java
,
Livello 4
,
Lezione 6
Risolta
Descending order for integers not working
Hi all, I'm having some problems solving this. The code I wrote doesnt work because Collections.reverseOrder() doesnt like integers. If I use a String array with String values, it works only for positive numbers (obviously). How can I solve this? Here attached you can find the "Int" version. Thank y
25.08.2023
385
viste
4
commenti
0
fari
Livello 8
Domanda sul compito
Cat code won't compile
Sintassi Java
,
Livello 7
,
Lezione 12
Discussione in corso
java.lang.NumberFormatException
hello, I can't find out why my code return that error. Can someone help me please?
02.10.2023
182
viste
4
commenti
0
Pandonio
Livello 7
Domanda sul compito
Shortest or longest
Sintassi Java
,
Livello 7
,
Lezione 6
Risolta
Code is working, but 3 e 4 requirements fail
Can you help me? Thanks!
06.09.2023
156
viste
4
commenti
0
Pandonio
Livello 7
Domanda sul compito
Even and odd digits
Sintassi Java
,
Livello 6
,
Lezione 5
Risolta
Even/odd number variables not working
Hi all, I dont know what the mistake is... The compiler says that I didnt store the number of even/odd numbers in the eved/odd variable... Can anyone help me? The output is correct Thank you..
30.08.2023
201
viste
2
commenti
0
fari
Livello 8
Domanda sul compito
Longest string
Sintassi Java
,
Livello 7
,
Lezione 6
Discussione in corso
Can't find the error/s
The code seems work, but can't pass the tests, someone can help me please?
20.07.2023
208
viste
2
commenti
0
Matte Mor
Livello 3
Risolta
I need help about IntelliJ IDEA and CodeGym plugin
Hi, I installed the latest IntelliJ IDEA app and then the CodeGym plugin by clicking on the link written in the lesson. When I click on the "Select Task" button as said in the lesson this ban shows up: "Intellij IDEA version does not match plugin version. Download suitable plugin?". After following
26.06.2023
151
viste
1
commento
0
fari
Livello 8
Domanda sul compito
Task about algorithms
Sintassi Java
,
Livello 5
,
Lezione 12
Discussione in corso
Last requirements
Hello everybody, my code can't pass the last requirement. Someone could help me please?
22.06.2023
274
viste
2
commenti
0
Matteo Nebbia
Livello 7
confienza
Domanda sul compito
Task about algorithms
Sintassi Java
,
Livello 5
,
Lezione 12
Discussione in corso
Can't find the solution, the program seems to work well.
hi, i can't find what do not let me pass this exercise. It work well, but i can't get green on the display maximum number.
13.04.2023
275
viste
1
commento
0
Matteo Nebbia
Livello 7
confienza
Domanda sul compito
Closest to 10
Sintassi Java
,
Livello 4
,
Lezione 4
Discussione in corso
output Is correct, but i can't get green on last check
hello, I made a program that works well, but last check never turns green. I checked the distance from +10, so a -3(example) Is 13 from +10, a +8 (example) is only 2 from +10. Am i wrong with my impostation?
30.03.2023
246
viste
2
commenti
0
Pina
Livello 4
PALERMO
Discussione in corso
I don't know how to do the exercises of CodeGym
Hi everyone. I arrived at lesson 8 of level 3. But I can't do some exercises. I asked for the solution ... and these are things I've never seen on codeGym. How come? how can i study like this? I'm confused
12.02.2023
262
viste
3
commenti
0
Pina
Livello 4
PALERMO
Discussione in corso
why? level 2 lesson 2
com/codegym/task/task02/task0202/Solution.java:16: error: illegal start of expression public static class person { ^ why it's wrong the public class person?
27.01.2023
252
viste
4
commenti
0
Belze
Livello 7
Domanda sul compito
Task about algorithms
Sintassi Java
,
Livello 5
,
Lezione 12
Risolta
boooh!!
I don't understand... it works fine but it doesn't pass!!!
17.01.2023
193
viste
2
commenti
0
Mostra altro
1
2
Please enable JavaScript to continue using this application.