Promotion
CodeGym University
Learning
Course
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme
Help with tasks
Reviews
About us
Start
Start learning
Start learning now
All questions
Ask a question
All quests
All levels
Any status
Questions about tasks
Hot
hidden #10426208
Level 11
Question about the task
Array of string lists
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
what wrong am I doing?
public static ArrayList[] createList() { //write your code here ArrayList[] list = new ArrayList[5]; for (int i = 0; i < 5; i++) { for (int j = 0; j < 5; j++) { list[i].add(i + " " + j); } } return list; }
12.01.2020
849
views
4
comments
0
Lirca Vlad
Level 11
Brasov
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Resolved
price
my programm is correct but it s appear an error like i didn t increase with 1000 ? where is the problem ? thanks
07.01.2020
1059
views
2
comments
0
krystian
Level 9
Kozle
Question about the task
ConsoleReader class
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
Any hints here?
public class ConsoleReader { public static String readString() throws Exception {
12.01.2020
820
views
1
comment
0
SOUFIANE DAHIMI
Level 32
Marrakech
Question about the task
Counting words
Java Core
,
Level 9
,
Lesson 5
Under discussion
Please can someone tell what's wrong with this code ; I think it's correct
please help
03.01.2020
901
views
2
comments
0
Pedzi
Level 22
Cape Town
Question about the task
To the top of the list
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
Please help, all my elements are being printed on a new line. I don't get why the last condition is failing
package com.codegym.task.task07.task0710; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; /* To the top of the list */ public class Solution { public static void main(String[] args) throws Exception { ArrayList list= new ArrayList();
12.01.2020
794
views
3
comments
0
Facundo Villarroel
Level 20
Berlin
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
Requirements should be passing, it is doing what it's supposed to do
Even using the web compiler, and the two long words are displayed, the tasks is still not passing. Any ideas? Thanks
13.10.2019
1580
views
7
comments
0
krystian
Level 9
Kozle
Question about the task
Distance between two points
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
Any hints What to add here?
public class Util { public static double getDistance(int x1, int y1, int x2, int y2) {
12.01.2020
795
views
1
comment
0
Denis
Level 22
Kharkiv
Question about the task
Bingo!
Java Core
,
Level 4
,
Lesson 2
Under discussion
its very easy, but i cant understand
can everybody help me?
25.06.2019
1028
views
2
comments
0
Creepah
Level 15
Question about the task
Sorting even numbers from a file
Java Core
,
Level 3
,
Lesson 11
Archived
Numbers can be negative error
It says: recommendation from your mentor Bear in mind that numbers can be negative. But when I test it in IntellIJ IDEA with a file, it gives correct output for negative numbers as well. Input used: 1 2 3 4 5 6 -4 -4 7 7 -2 -7 -1 -46 Output given: 2 4 6 -4 -4 -2 -46
20.11.2019
956
views
2
comments
1
max
Level 8
livorno
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
where is the mistake?
i'm not able to validate my code as the replay from the system is that the green condition is not met and i don't understand the reason. Here below my code:
06.01.2020
1064
views
3
comments
0
Hendra
Level 8
Medan
Question about the task
ConsoleReader class
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
help...what wrong with my code,stucked with the last requirement
package com.codegym.task.task06.task0610; import java.io.BufferedReader;
11.01.2020
878
views
5
comments
0
Alexander Shtunder
Level 41
San Francisco
Question about the task
Counting words
Java Core
,
Level 9
,
Lesson 5
Resolved
Who will help me?
Checked my code on 10 different files. Everything works fine, but the last condition fails.
31.08.2019
1365
views
3
comments
0
Pippo
Level 9
Padova
Question about the task
Maximum in an array
Java Syntax
,
Level 7
,
Lesson 4
Resolved
I don't understand why it doesn't accept this
Guys, the output is right, sorry but I can't figure it out where is the mistake.
21.07.2019
1727
views
3
comments
0
Ice_ Beam
Level 7
Resolved
Math equation with % (modulo) clarification help
int k = 50; int a = (k/5) * k + (k/2) % 2; System.out.print(a); // it prints out 501 // say that I calculated (k/5)*k+(k/2) already together which is 525 so int a = 525 % 2; System.out.print(a); // it prints out 1 Why is the first answer different than my second one?
11.01.2020
787
views
2
comments
0
John Doe
Level 18
london
Question about the task
Wine tasting
Java Core
,
Level 4
,
Lesson 8
Archived
I really don't know what I miss on this exam can someone help me please ?
10.01.2020
993
views
4
comments
0
John
Level 27
Washington DC
Question about the task
Snake (part 13)
Java Multithreading
,
Level 2
,
Lesson 18
Under discussion
This is exasperating...
I don't know why this isn't validating. I created a separate test with sample "levels" from 0 - 20 and received correct output for each level.
10.01.2020
948
views
1
comment
0
Kim Sangwoo
Level 4
Singapore
Question about the task
Jen or Jen?
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
I dont see anything wrong with my code but keep failing one criterion...
My code fails the "If the two strings are identical, dispay " The numbers are identical" " criterion. Help please? public static void main(String[] args) throws Exception { Scanner scan = new Scanner(System.in); String first_name = scan.nextLine(); String second_name = scan
04.01.2020
1215
views
2
comments
0
Jamie
Level 8
MERSEYSIDE
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Resolved
It works out but won't work?
I've compared all sides to the sum of the others but it reckons I've not accounted for the impossible triangles.. Please advise!!!
25.11.2019
827
views
1
comment
0
YO MA
Level 5
Mumbai
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 4
Resolved
What am i missing? please help!
public class Solution { public static void main(String[] args) throws Exception { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); String a = bufferedReader.readLine(); if (a>0) System.out.println(a*2); else if (a<
07.11.2019
1483
views
6
comments
0
Clarendon lee
Level 8
Baltimore
Question about the task
Three numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
Not met
Output number "2" But verify saying : task no met ? What's my code wrong? Thanks a lot.
07.10.2019
1136
views
3
comments
0
Aleksander
Level 18
Katowice
Question about the task
Price of apples
Java Syntax
,
Level 4
,
Lesson 1
Resolved
is this solution OK ?
public class Solution { public static void main(String[] args) { Apple apple = new Apple(); apple.addPrice(50); Apple apple2 = new Apple(); apple2.addPrice(100); System.out.println("The cost of apples is " + Apple.applePrice); } public static cl
07.01.2020
1355
views
1
comment
0
Ntuthuko Xaba
Level 18
Johannesburg
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
I'm getting the correct results but i'm failing the test.Will somebody please explain what is wrong with this code?
I'm getting the correct results but i'm failing the test.Will somebody please explain what is wrong with this code?
09.01.2020
1058
views
2
comments
0
Ashok Rai
Level 3
Kathmandu
Question about the task
Family relations
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
what to do next im having trouble i couldnt understand what to do next?
03.12.2018
1232
views
3
comments
0
Alec Jensen
Level 5
Arlington
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
when to use 'else if' statements I feel my code should be close
I have tried a ton of different codes to get the minimum but in the end it always prints out C regardless of if it is the max or min. the 'else if ' statement never works and says there is an error because there is and 'else' without an 'if'. Can someone explain to me what that error means?
27.12.2019
1198
views
11
comments
0
Anthony Chalk
Level 30
London
Question about the task
Splitting a file
Java Core
,
Level 8
,
Lesson 5
Resolved
PLease help
Keep getting the following mentor recommendation: When there is an odd number of bytes in the first file, your program writes the smaller half of the bytes. It should write the larger half. When there is an odd number of bytes in the first file, your program writes the larger half to the third file.
08.01.2020
1064
views
6
comments
0
Diana Pettit
Level 4
Mobile
Question about the task
Display right away
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
Can someone please help me???
It says line line 9 needs an identifier. What am I doing wrong??? Iv'e tried it all kinds of different ways and none of them work.
09.01.2020
999
views
1
comment
0
RafaĆ Szrajnert
Level 7
Poddebice
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
what else?
hi, I can not figure this out. maybe some tips, or help?
02.01.2020
829
views
2
comments
0
Rubaina Farin
Level 1
Toronto
Question about the task
Racer (Part 4/28)
Games
,
Level 0
,
Lesson 5
Under discussion
Understanding Task
Can someone help me understand what it means when the tasks ask to "In the setCellColor(int, int, Color) method, the base class's method must be called using the super keyword." Where does it go and how do I do it? Thank you in advance!
08.01.2020
1064
views
1
comment
0
TooBiee
Level 19
Hannover
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
Please explain me why this code fails
Hi Everyone, can anyone help to understand why my code dont pass the test? Thanks TooBiee
12.12.2019
944
views
5
comments
0
Zhuoliang Pu
Level 31
Foster City
Question about the task
Bridges
Java Core
,
Level 4
,
Lesson 8
Under discussion
need some help!
I don't know why it is not verified...
25.12.2019
916
views
2
comments
0
Show more
1
...
234
235
236
237
238
...
366
Please enable JavaScript to continue using this application.