Promotion
CodeGym University
Learning
Courses
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
Java 25
All quests
All levels
Any status
Questions about tasks
Hot
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
12/4/22
542
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][];
7/24/22
882
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.
3/25/23
435
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); }
3/3/23
401
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
3/27/23
371
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
3/24/23
578
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() {
3/25/23
438
views
0
comments
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
?
2/19/23
512
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
3/22/23
720
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
2/14/21
1106
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?
12/18/19
1936
views
13
comments
0
Thomas Yates
Level 1
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:
3/17/23
536
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.
3/17/23
608
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
9/15/22
690
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
3/17/23
615
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
3/17/23
567
views
4
comments
0
Nitin Saini
Level 4
New
I forgot my password so what should I do now
help me to reset it
3/17/23
399
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
3/12/23
509
views
1
comment
0
Amo programmare
Level 32
Question about the task
Adapting multiple interfaces
Java Core
,
Level 9
,
Lesson 3
Resolved
Don't understand why failing validation
Hi All, If I could get maybe a second pair of eyes, it would be greatly appreciated as I don't understand why I can't pass validation. I've checked everything I could think of. The phone number from the tests I did come out ten digits with the write format, but the validator only gives me that as
3/17/23
684
views
2
comments
0
Mike S
Level 28
Saint Louis
Question about the task
Replacing numbers
Java Core
,
Level 9
,
Lesson 11
Resolved
Correct output, but not validated
Greetings friends, After an ungodly number of hours of figuring out how to break it into Strings without regex (thanks Breakiterator!) and then figuring out how to not lose the period at the end, it's not taking my answer even though it matches the output. It's not obvious to me what circumstances
3/15/23
688
views
7
comments
0
sagar thakur
Level 6
CodeGym University in India
Question about the task
Minimum of N numbers
Java Syntax
,
Level 6
,
Lesson 3
Under discussion
Can someone help me with this?
Why doesnt it work?
3/10/23
535
views
3
comments
0
J
Level 41
Wilson
Question about the task
Restaurant (part 10)
Java Multithreading
,
Level 9
,
Lesson 15
Under discussion
Why is the impressions remaining requirement not validating?
I have a condition that only adds advertisements with impressions remaining of 1 or more to the maximum list. Why is this not validating?
9/9/22
531
views
1
comment
2
Henk
Level 19
Pretoria
Question about the task
Wrapper (Decorator)
Java Core
,
Level 8
,
Lesson 8
Resolved
Looks fine to me, why is it not correct ? Anyone ?
I'll admit, I don't know WHAT I'm doing w.r.t. this wrapper concept. I just copy the stuff from the example, makes no sense why I would need this. I shall go read up on it in Head First Java....
6/6/19
2011
views
11
comments
0
Denis
Level 22
Kharkiv
Question about the task
Wrapper (Decorator)
Java Core
,
Level 8
,
Lesson 8
Under discussion
help me pls
what i can do in this situation?
6/28/19
1339
views
2
comments
0
rudydesplan
Level 4
France
Question about the task
Summation
Java Syntax
,
Level 4
,
Lesson 0
Under discussion
solution
public class Solution { public static void main(String[] args) { ..............; ..............; // initiate the sum variable to 0. ..............; // create an enter variable used later to compare to the input while (true) { if (..............) {
3/12/23
429
views
0
comments
2
Satya Vath
Level 31
Vijayawada
Question about the task
Don't take the car to the shop!
Java Multithreading
,
Level 5
,
Lesson 2
Under discussion
Where is The Mistake?
Please Help
5/29/19
1800
views
11
comments
0
Abhishek Rangari
Level 22
Nagpur
Question about the task
DownloadException
Java Core
,
Level 8
,
Lesson 5
Under discussion
can anyone help me in this task
3rd condition is not satisfying..
12/19/18
1776
views
5
comments
0
Thomas Yates
Level 1
Question about the task
Welcome! But not everyone.
Java Syntax
,
Level 9
,
Lesson 2
Resolved
The code is outputing the String if username != "user", and exits without returning anything when username = "user". The code still will not pass?
see code below:
2/24/23
384
views
3
comments
0
Thomas Yates
Level 1
Question about the task
Binary to hexadecimal converter
Java Syntax
,
Level 11
,
Lesson 1
Resolved
I don't understan why the toBinary function will not pass?
When I run the verification, I keep failing the 2nd test as shown
3/10/23
593
views
2
comments
0
Thomas Yates
Level 1
Question about the task
Filling an array
Java Syntax
,
Level 11
,
Lesson 5
Resolved
Odd array is failing...
I keep getting a failed status, even though the visible output seems right. What would be a type of input that would cause this to fail?
3/10/23
410
views
2
comments
0
Show more
1
...
29
30
31
32
33
...
374
Please enable JavaScript to continue using this application.