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
All quests
All levels
Any status
Questions about tasks
Hot
Niket
Level 8
Kolkata
Question about the task
This age doesn't work for me…
Java Syntax
,
Level 4
,
Lesson 1
Resolved
I have 2 Solutions, which one is correct?
First one is: public void adjustAge(int Age) { age = Age + 20; System.out.println("The age in adjustAge() is " + age);//In this case this prints 40 as age here also. } Second one is: public void adjustAge(int age) { this.age = this.age + 20;
07.01.2019
2481
views
7
comments
0
iqbalhussain
Level 22
Peshawar
Question about the task
Reading and writing to a file: Human
Java Core
,
Level 10
,
Lesson 2
Archived
Need Help
Any one Solved this task...
24.01.2019
1276
views
5
comments
0
Robert
Level 9
Lombard
Question about the task
Reading and writing to a file: CodeGym
Java Core
,
Level 10
,
Lesson 2
Under discussion
Been looking at this to long
I give up. I can not figure out what I am doing wrong. Any ideas? Thank you.
24.09.2019
1097
views
3
comments
0
Joshua Ingersoll
Level 5
Brighton
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Help determining error in code
Can someone help me determine what I have done wrong and why this will not execute properly? I have also tried having just an else clause rather than the else if( condition ) clause but that also did not fix the problem.
25.10.2019
1144
views
2
comments
0
Joshua Ingersoll
Level 5
Brighton
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Code not completing requirments
Hello, Can anyone help me determine why my code will not satisfy the requirements? I have copied the same code into Coolbeans and I have entered every number 1-60 and every number gives the correct output. What am I doing wrong? Thank you!
29.10.2019
933
views
2
comments
0
mail.musa.khan
Level 22
Bloomington
Question about the task
Robot wars
Java Core
,
Level 3
,
Lesson 11
Under discussion
The validation fails and it asks me to implement canDefend interface, what am I missing?
I can't figure this out. I have implemented canDefend interface, but the compiler doesn't seem to agree.
29.10.2019
1231
views
5
comments
0
hidden #10536831
Level 10
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
Could you help?
What is wrong?
29.10.2019
847
views
2
comments
0
vladimir.plamadeala@endava.com
Level 10
Chisinau
Question about the task
Set of cats
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Why the last condition is failing?
In IntelliJ it displays two results.
29.10.2019
1882
views
4
comments
0
Andrew
Level 29
Seattle
Question about the task
Correct the bug. Classes and interfaces
Java Core
,
Level 9
,
Lesson 11
Resolved
No idea...
Hint please.
01.03.2019
1727
views
6
comments
2
Павел Артеменко
Level 41
Krasnodar
Question about the task
Contextual advertising
Java Core
,
Level 9
,
Lesson 11
Resolved
Am I missed something?
All works as per description, but verifying failed on last 2 conditions.
28.04.2019
1254
views
2
comments
1
Luyi
Level 31
Kosice
Question about the task
Inheriting an inner class
Java Multithreading
,
Level 4
,
Lesson 4
Under discussion
what is the popper way?
Hi what is the proper way of achieving the task: "The BigHall class must be a descendant of the Building.Hall class." I have done it this way: public class BigHall extends Building.Hall { public BigHall(Building b){ b.super(null); } But I am not sure to be honest
28.10.2019
1293
views
2
comments
0
Jesús de Llera
Level 23
Badajoz
Question about the task
Following a pattern
Java Core
,
Level 6
,
Lesson 13
Resolved
The program displayed too much data on the console (on the screen)???
Last condition not verified. Don't know why. Neither do I know why the validator is complaining about too much data on screen....
14.06.2019
1810
views
2
comments
1
Cristian
Level 16
Bucharest
Question about the task
Static cats
Java Syntax
,
Level 6
,
Lesson 11
Archived
I have one compile error. Please, help me!
package com.codegym.task.task06.task0614; import java.util.ArrayList; /* Static cats */ public class Cat { //write your code here public static ArrayList cats = new ArrayList<>(); public Cat() { } public static void main(String[] args) { for (int i = 0; i <
28.10.2019
1092
views
3
comments
0
Season10
Level 14
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 7
Resolved
Note that 0 is not a positive or negative number.
Can someone help me? I try but I don't know why
28.10.2019
1527
views
2
comments
0
Robert Constantinescu
Level 25
Bucharest
Question about the task
Five winners
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Am i missing something?
The algorithm looks like it's sorting the array in descending order. But for some reason, even though the displayed numbers are the biggest five. It fails testing? Is the algorithm wrong? or maybe something else? Kindly let me have your answers. Thank you
27.10.2019
1106
views
3
comments
0
Leontin Vasii
Level 6
Iasi
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Hy....I am stuck here...!!!
Help me pls with some hint's.....
28.10.2019
1248
views
1
comment
0
Madhu
Level 9
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
Last two conditions are not getting....can anyone help me??
.........
11.08.2019
1074
views
1
comment
0
Зоран Јањић
Level 8
Teslic
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
Any help please?
Cant figure out the rest .
25.10.2019
1081
views
1
comment
0
Juanf
Level 26
Question about the task
Long words
Java Core
,
Level 9
,
Lesson 11
Resolved
So..., why Mentor tells me: "Be sure that the program writes to the second file all the words from the first file longer than 6 characters, separated by commas."??
I've checked and tested, and for me works. I've included code so I event respect carriages returns (first attempts were without this), and I don't finish with "," in any of the lines, nor at the end of the file. So..., why it doesn't verify and that's the "recommendation"? Can anyone help, please?
27.10.2019
1220
views
2
comments
0
Patrick freeman
Level 14
Buffalo
Question about the task
Remove and insert
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
What is wrong
I'm not sure where I am going wrong, in IntelliJ, I keep getting an out of bounds exception, but I don't think I'm doing anything to or calling index 5(the 6th string in the index), so I'm not sure where this is wrong. Thanks for the help in advance!
20.10.2019
1112
views
3
comments
0
Patrick freeman
Level 14
Buffalo
Question about the task
Expressing ourselves more concisely
Java Syntax
,
Level 7
,
Lesson 6
Archived
Why wont this pass?
If i run my program in IntelliJ, my input and output looks like this: INPUT: a a as asfd asd OUTPUT: a a The program reads 5 strings from keyboard, finds the shortest string, displays it, and displays multiples if more than one are the shortest. Yet, none of the conditions pass. The previous task
20.10.2019
1270
views
3
comments
0
RO8SA1T
Level 2
Pune
Question about the task
The required number
Java Syntax
,
Level 2
,
Lesson 5
Resolved
please help me
i am not getting the meaning of Comment out as many lines as possible to display the number 19 please help me
21.08.2018
1614
views
9
comments
0
Anthony Chalk
Level 30
London
Question about the task
Display numbers in reverse order
Java Syntax
,
Level 7
,
Lesson 12
Resolved
Why is this not validating?
I can't see the problem
26.10.2019
1153
views
3
comments
0
ashgolan
Level 8
Ashdod
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Resolved
hi . i have a correct output but i dont find the problem ?
can anybody help please ?
27.10.2019
1024
views
1
comment
0
Clarendon lee
Level 8
Baltimore
Question about the task
Creating cats
Java Syntax
,
Level 5
,
Lesson 9
Resolved
Construction
What's my code wrong? Verify said "Be sure that the constructor initializes the required variables to the correct values. Be sure that the constructor initializes the required variables to the correct values. Be sure that the constructor initializes the require
26.10.2019
1401
views
1
comment
0
Зоран Јањић
Level 8
Teslic
Question about the task
Cat relations
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
Any help here please ?
public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String grandfatherName = reader.readLine(); Cat Grandfather = new Cat(grandfatherName); Str
25.10.2019
1206
views
3
comments
0
Anthony Chalk
Level 30
London
Question about the task
Checking the order
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Please help
I can't find the problem. Please help Thanks
26.10.2019
1045
views
2
comments
0
Patryk Vrezer
Level 3
Gdansk
Under discussion
No Task
Hello i installed plugin in my Inteliij but I dont have my task I have only on lvl 0,1 but i have lvl 3 do you have idea?
26.10.2019
1027
views
1
comment
0
Зоран Јањић
Level 8
Teslic
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Archived
Any advice please.
import java.io.*; /* Task about algorithms */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int maximum =0 ; int N = Integer.parseInt(reader.readLine())
25.10.2019
988
views
2
comments
0
Kent Hervey
Level 19
Question about the task
Feng Shui and statics
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
Please explain why it works
I got verification/passed using the below, but why? How? I just guessed. And what does this do? A=15; public class Solution { public static int A = 5; public int B = 2; public int C = A * B; public static void main(String[] args) { A = 15; } }
25.10.2019
1440
views
4
comments
0
Show more
1
...
264
265
266
267
268
...
371
Please enable JavaScript to continue using this application.