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
Varunkumar
Level 3
Chennai
Question about the task
Square of a number
Java Syntax
,
Level 1
,
Lesson 8
Archived
How to call a method in java??
https://codegym.cc/tasks/com.codegym.task.task01.task0127
16.01.2019
1138
views
2
comments
0
WatWat
Level 9
Vancouver
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
Ran with correct output an no errors why is it not being verified
Not being verified. Please look at my code
14.10.2018
1331
views
3
comments
0
Rad
Level 8
Maidstone
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
i need help
i did some mistakes in my code,please help me how to correct it
08.11.2018
1076
views
3
comments
0
Zbigniew
Level 23
Dabrowa Tarnowska
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Resolved
More efficient way of solving this task
I've managed to solve this task with the code below, but it does't seem to be most efficient way to do this. What's the most compact way of solving this task? I would appreciate if somebody could post his/hers code with short explanation. Pointing out my mistakes and explaining them is also welcome.
06.01.2019
1837
views
3
comments
0
Sarvesh
Level 11
Bangalore
Question about the task
Display right away
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
Could you help me find my mistake here in the below code for the task.
package com.codegym.task.task03.task0302; /* Display right away */ public class Solution { // write your code here public static void main(String[] args) { printString("Hello, Amigo!"); } public static void printString(String s);{ System.out.println("s"); }
06.01.2019
1517
views
5
comments
0
Sabine Meijran-Prins
Level 7
Enschede
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
Something wrong with my code..
Do you know what is wrong with this code? public class Solution { public static int min(int a, int b, int c) { int m2; if ((a < b) && (a < c)){ m2 = a; } if ((b < a) && (b < c)){ m2 = b; } if ((c < a) &
29.11.2018
1250
views
5
comments
0
Sravya
Level 3
Hyderabad
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
why i'm getting typo error?
why i'm getting typo error??
09.01.2019
1065
views
4
comments
0
MP
Level 8
Wietzendorf
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
Just a question about the functions
Hello there, I have a short question about this task. I did solve it but I'm curious - are they both not have the same name (min)? Isn't that a little confusing for the compiler? What is the difference between them so the compiler knows how to handle it? Sorry if that question might be dumb :)
15.01.2019
1034
views
5
comments
0
Joy Majumdar
Level 16
Kolkata
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Resolved
What is wrong here ?
Point out
15.01.2019
1528
views
2
comments
0
Mohammed Amine EL AMRANI
Level 11
Rabat
Question about the task
Cat relations
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
key "Cat"
Hello, public static class Cat { private String name; private Cat mother; private Cat father; } What does it mean the keyword " Cat " before mother/father ?
19.12.2018
1119
views
3
comments
0
Aditya Ashtikar
Level 8
Kaul
Question about the task
Cat relations
Java Syntax
,
Level 6
,
Lesson 11
Resolved
Provided conditions were a typo, a single verification criteria not met
Don't see it, just don't see it! Someone please help it won't verify, I don't know if it's a typo(which was earlier and took like 30 minutes for me to get, seriously the conditions defined are a typo) or some code problem. Either way, someone please provide some insight.
06.08.2018
1921
views
4
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Archived
Can you help me?
i don't have idea how to reslove it.
04.01.2019
1245
views
2
comments
0
gery
Level 9
Islamabad
Question about the task
Calculator
Java Syntax
,
Level 6
,
Lesson 8
Resolved
correction needed in division method
public static int plus(int a, int b) { //write your code here return (a + b); } public static int minus(int a, int b) { //write your code here return (a - b); } public static int multiply(int a, int b) { //write your code here return
19.09.2018
3055
views
3
comments
2
Sushant
Level 4
goa
Question about the task
Family relations
Java Syntax
,
Level 2
,
Lesson 2
Resolved
Family relations
HELP TO FIND THE SOLUTION.
03.08.2018
2543
views
6
comments
0
Somya Gupta
Level 4
Vrindavan
Question about the task
Family relations
Java Syntax
,
Level 2
,
Lesson 2
Resolved
what is the answerof 3 and 4
package com.codegym.task.task02.task0204; /* Family relations */ public class Solution { public static void main(String[] args) { //write your code here Man man= new Man(); Woman woman= new Woman(); woman.husband=Man; Man.wife=Woman;
18.08.2018
2183
views
3
comments
0
Sushant
Level 4
goa
Question about the task
The great purge
Java Syntax
,
Level 1
,
Lesson 8
Resolved
can any one help me out from this task.
can any one help
02.08.2018
1562
views
5
comments
0
ShirAz SiddiQui
Level 8
Karachi
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
I'm not able to understand this requirement. The min(a, b, c, d) method must use the min(a, b) method.
I'm not able to understand this requirement. The min(a, b, c, d) method must use the min(a, b) method. Can anyone help me understand this question?
12.01.2019
1286
views
2
comments
0
Hafsah Jilanee
Level 10
Karachi
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
Program not working
Can someone please help me where I messed up? I followed the syntax mentioned but it's somehow not running.
12.01.2019
1209
views
5
comments
0
Laurap5
Level 9
Vilnius
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Resolved
Please help:(
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String n1 = reader.readLine(); char ch = n1.charAt(0); int n = Character.getNumericValue(ch); if (n % 2 == 0){ even++; } else if (n % 2 ==1){ odd++
21.11.2018
1719
views
11
comments
1
Pawan Harde
Level 4
Mumbai
Question about the task
Do we have a pair?
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
idk how this error is generated
error: incompatible types: int cannot be converted to boolean if(a=b=c){ ^
12.10.2018
1409
views
2
comments
0
Angeget
Level 22
Potsdam
Question about the task
Do we have a pair?
Java Syntax
,
Level 4
,
Lesson 4
Resolved
The code is working, can somebody help me how to improve it please?
//first compare all three numbers if(number1 == number2 && number1 == number3 && number2 == number3) System.out.println(number1 + " " + number2 + " " + number3); else if (number2 == number3 ) System.out.println(number2 + " " + number3);
24.12.2018
1461
views
1
comment
0
Andrew
Level 29
Seattle
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Resolved
IDE not processing current task
IDE issue: Ever since the tasks started using keyboard input (Level 3 Lesson 8) I'm having trouble getting the test to run on the current task. When I select the Verify task button it just reruns test on the previous task. I've been restarting IntelliJ between each task to get it to move on to the
10.01.2019
1242
views
2
comments
0
Angeget
Level 22
Potsdam
Question about the task
Make a family
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Don't know what is wrong hier - please i need Help
Don't know what is wrong hier - please i need Help
10.01.2019
1651
views
3
comments
0
Dino
Level 13
Zagreb
Under discussion
Can anyone tell me what doesn't work here? Thanks!
package com.codegym.task.task08.task0814; import java.util.HashSet; import java.util.Set; import java.util.Iterator; /* Greater than 10? You're not a good fit for us */ public class Solution { public static HashSet createSet() { // write your code here int[] a = {1, 2, 3, 4,
10.01.2019
939
views
1
comment
0
Ansh Rupani
Level 2
Lucknow
Question about the task
CodeGym. Learn once - use anywhere
Java Syntax
,
Level 1
,
Lesson 4
Under discussion
HOW TO DO THIS PROGRAM PLZ EXPLAIN
I ANT UNDERSTAND HOW TO DO THIS PROGRAM . DO WE HAVE TO USE A LOOP HERE? HOW TO DO THIS PROGRAM PLZ EXPLAIN
28.12.2018
1250
views
2
comments
0
Talha Javed
Level 4
sialkot
Under discussion
unlock plz
how to unlock my level 2 lesson 1
13.09.2018
1010
views
2
comments
0
Rahul Sakhare
Level 5
Pune
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Resolved
Written code using Scanner class but, still getting error..!!
import java.io.*; import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { Scanner sc1 = new Scanner(System.in); String name = sc1.next(); int years = sc1.nextInt(); System.out.println(name + " will take over t
09.01.2019
1307
views
3
comments
0
Eduardo
Level 23
Coyoacan
Question about the task
Software update
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Why is the value null?
Hi, I run the program but it always shows a null value (like there where no families or values in the map). What am I missing? Thanks
09.01.2019
1095
views
2
comments
0
JGO
Level 4
San Jose
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
Minimum
What mistake am I making in my code?
05.01.2019
1143
views
1
comment
0
Syed Tayyab ul Mazhar
Level 12
Karachi
Under discussion
Saved lessons.
How can I view all the lessons I have saved?
06.01.2019
1011
views
1
comment
0
Show more
1
...
343
344
345
346
347
...
366
Please enable JavaScript to continue using this application.