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
Yiheng Niu
Level 26
Beijing
Question about the task
Introducing tags
Java Core
,
Level 9
,
Lesson 11
Under discussion
My program works for the example, but fails the last verification. Can someone help me please?
I have tried several inputs and it works fine. But for some reason, it cannot pass the last verification. Can you give me a little hint, please? Any help will be appreciated!
07.03.2020
951
views
2
comments
1
Anthony Chalk
Level 30
London
Question about the task
Introducing tags
Java Core
,
Level 9
,
Lesson 11
Under discussion
Matches the example output but still fails
Please help
11.02.2020
898
views
3
comments
1
Maxim Raitin
Level 20
Tomsk
Question about the task
Minimum of N numbers
Java Syntax
,
Level 8
,
Lesson 11
Resolved
I don't understand task
I don't understand the requirement: "The getIntegerList() method should read the number N from the keyboard and then return a list of N elements, which has been filled with numbers read from the keyboard.". Ok, but what is it N elements?? How many? I don't understand how many numbers I should type o
19.03.2021
466
views
1
comment
1
kapil
Level 12
delhi
Question about the task
Dividing by zero
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
please find the error
it shows error....The divideByZero method must contain a divide-by-zero operation...i have tried a lot with different possibilities but helpless....
09.02.2019
1336
views
6
comments
1
Timothy Cutlip
Level 4
Marietta
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Resolved
How is my code wrong?
I get the write output on screen. i called the function twice through a loop in the main function and a separate loop in the print function to get a total of 4 outputs all on separate lines but some how is still wrong. can anyone explain?
11.02.2019
1936
views
5
comments
1
Thomas
Level 41
Bayreuth
Question about the task
Recursion for mathematical expressions
Java Collections
,
Level 4
,
Lesson 2
Under discussion
Back at this task again
Back here again the second time and still I do not get this task validated. I already took the output formatting from the CG solution but it still does not want to validate. The overall approach is.... -> take the string, run it through the Tokenizer -> a list of tokens is the result -> p
29.03.2023
293
views
2
comments
0
Nitin Saini
Level 4
Question about the task
Maximum of entered numbers
Java Syntax
,
Level 4
,
Lesson 5
Under discussion
it is showing error in the 15th line please help
help
29.03.2023
213
views
1
comment
2
Justin Smith
Level 41
Greenfield, USA
Question about the task
Aggregator (part 8)
Java Collections
,
Level 8
,
Lesson 15
New
Stuck on requirements 5-9
Here is what I have so far: public List<JobPosting> getJobPostings(String searchString) { List<JobPosting> list = new ArrayList<>(); int startValue = 0; Elements jobSearchResultItems; do { Document document = getDocument(searchString, startValue);
29.03.2023
278
views
0
comments
0
Liliane Top
Level 24
Amsterdam
Question about the task
Your own FileWriter
Java Core
,
Level 9
,
Lesson 11
Resolved
I passed the test but it is actually not working why?
I do not understand why it is not writing to the file while it is writing to the console. Where do I go wrong? package com.codegym.task.task19.task1917; /* Your own FileWriter */ import java.io.*; public class FileConsoleWriter { //1. The FileConsoleWriter class must contain a private File
11.01.2021
400
views
4
comments
0
IRFAN BAIG
Level 9
India
Question about the task
Creating a two-dimensional array
Java Syntax
,
Level 6
,
Lesson 6
Under discussion
Not able to pass the last condition not sure why please give me hint
Not able to pass the last condition not sure why please provide me suggestion
10.03.2022
537
views
1
comment
1
Rajiv
Level 7
Omaha
Question about the task
Creating a two-dimensional array
Java Syntax
,
Level 6
,
Lesson 6
Resolved
Code seems right, but still wont pass validation
Hi, My code seems right, but it still fails validation, can you please help to point out the error.
04.09.2022
463
views
1
comment
1
Chrizzly
Level 12
Earth
Question about the task
Creating a two-dimensional array
Java Syntax
,
Level 5
,
Lesson 5
Resolved
Not sure about the input type and if condition
Hey guys, do you know why the input is in String, instead of int? 1) Does it need to be a String here (or could the provide an int, too), or why did Codegym give us Strings instead of ints as input? 2) Is it bad practice to use an if, to check if the number is positive here? 2.1) Why don't we need
04.12.2022
286
views
3
comments
1
Alex Tor
Level 31
Question about the task
Creating a two-dimensional array
Java Syntax
,
Level 6
,
Lesson 6
Resolved
My solution considered correct and it's solved now, but I don't think so.
public class Solution { public static int[][] multiArray; public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int input = scanner.nextInt(); if (input > 0) { int times = input; multiArray = new int[input][];
24.07.2022
438
views
5
comments
1
Michael Pascua
Level 14
United States of America
Question about the task
Car manufacturer
Java Syntax
,
Level 13
,
Lesson 5
Under discussion
Why do we use an "initialize method" instead of a constructor.
Why do we use an "initialize method" instead of a constructor? At face value, it looks like they both do the same thing.
25.03.2023
208
views
2
comments
0
Reyaz Ahmad Bhat
Level 4
Anantnag Jammu And Kashmir
Question about the task
Comparing strings by reference
Java Syntax
,
Level 3
,
Lesson 9
Under discussion
Solution
if(string1 == string2){ System.out.println(same); }else{ System.out.println(different); } if(string1 == string3){ System.out.println(same); }else{ System.out.println(different); }
03.03.2023
205
views
1
comment
0
Nitin Saini
Level 4
New
I am not able to attach my codes to any question for community help
I am not able to do that because when I click on the button of attaching file it is not attaching the file. It is just like that off please help
27.03.2023
165
views
0
comments
0
Nitin Saini
Level 4
Question about the task
Comparing strings by reference
Java Syntax
,
Level 3
,
Lesson 9
Resolved
why is it showing that appropriate messages are not shown
please help
24.03.2023
298
views
1
comment
0
Justin Smith
Level 41
Greenfield, USA
Question about the task
Aggregator (part 5)
Java Collections
,
Level 8
,
Lesson 15
New
The instructions are very confusing
It says "go through all of the providers and collect all their job postings and add them to the list." What list? There is no List object in the Controller class. I thought maybe it meant that the scan() method should return a list? So I wrote it that way: public List<JobPosting> scan() {
25.03.2023
194
views
0
comments
0
Eyiyemi Odukunle
Level 1
Question about the task
It's cool to be a programmer!
Java Syntax
,
Level 1
,
Lesson 3
Under discussion
how to code
25.03.2023
204
views
1
comment
0
Nika Kopadze
Level 2
Question about the task
Amigo is very smart
Java Syntax
,
Level 1
,
Lesson 1
Under discussion
how can i start the task
?
19.02.2023
239
views
2
comments
0
Mike S
Level 28
Saint Louis
Question about the task
Reading and writing to a file: CodeGym
Java Core
,
Level 10
,
Lesson 2
Under discussion
What in the heck is up with SimpleDateFormat??
I've come across this before I feel like and it was some cause for grief on this exercise. I passed it, but only by doing some workarounds on SimpleDateFormat. Long story short, it doesn't seem to matter what format I type into the SimpleDateFormat(String format) constructor it always produces this
22.03.2023
270
views
4
comments
0
Anthony Chalk
Level 30
London
Question about the task
Phone number verification
Java Multithreading
,
Level 2
,
Lesson 13
Resolved
Trying to use regex
I've tried testing my code with the examples provided in the conditions and it doesn't work. I'm not sure that I've used the escape characters properly. Also, line 16 if (temp.length() != 10) return false; has a warning "Condition is always true", and I'm not sure why
14.02.2021
623
views
5
comments
0
Alexandre Lalancette
Level 41
Quebec
Question about the task
Stranger things
Java Core
,
Level 10
,
Lesson 2
Resolved
I don't understand what is missing in my code?
I don't understand what is missing in my code?
18.12.2019
1552
views
13
comments
0
Thomas Yates
Level 16
Question about the task
The engine — the heart of the car
Java Syntax
,
Level 14
,
Lesson 2
Resolved
The Engine class must have a public void start method that sets the isRunning field to true.
I think I'm doing this in my code, but I keep failing the validation shown below:
17.03.2023
258
views
2
comments
0
Patricia Louise Hernandez
Level 4
Question about the task
The hard way...
Java Syntax
,
Level 3
,
Lesson 7
Under discussion
I cannot see what's wrong with my code
Hi, pls help task is not accepting my answer. Pls help me check what's wrong because it says there is something wrong with my code on the "less than 5" part.
17.03.2023
295
views
1
comment
0
ABHISHEK PANDEY
Level 14
Mumbai
Question about the task
Reverse
Java Syntax
,
Level 6
,
Lesson 3
Under discussion
this is really confusing
please include illustrative example also, to have better understanding of problem
15.09.2022
416
views
3
comments
0
matemate123
Level 50
Kraków
Question about the task
Make a word chain
Java Multithreading
,
Level 2
,
Lesson 9
Under discussion
Make a worst chain
Ok for me this task is like big head ache. After analize code Lisa L. from help section in Antony Chalk, I got a little grasp how to do it. I try do it by mysefl a little simpler and here what we get. (maybe not simpler, but with tools which I knows better, she use streams so ellegantly) But when I
17.03.2023
335
views
8
comments
0
Mike S
Level 28
Saint Louis
Question about the task
Introducing tags
Java Core
,
Level 9
,
Lesson 11
Under discussion
Clarify the Conditions
Looking at the templates we need to parse for... text1 text1 text1 The first and second lines make sense. But looking around the rest of the exercise description and examples, I still can't decipher what's exactly being illustrated in the last two lines. Mr. or Ms. Klesk's expansion in the Discus
17.03.2023
273
views
4
comments
0
Nitin Saini
Level 4
New
I forgot my password so what should I do now
help me to reset it
17.03.2023
156
views
0
comments
0
Uday
Level 1
Question about the task
Amigo is very smart
Java Syntax
,
Level 1
,
Lesson 1
Under discussion
Code
How to code in c language
12.03.2023
183
views
1
comment
0
Show more
1
...
19
20
21
22
23
...
366
Please enable JavaScript to continue using this application.