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
lordheraldor
Level 23
Newark
Question about the task
CRUD 2
Java Core
,
Level 7
,
Lesson 10
Resolved
Everything but my create method works
I try to run it with arguments and it basically gives me an array out of bounds exception on the switch statement. I don't know what else to do.
23.02.2019
1447
views
2
comments
0
Gurpreet Grewal
Level 4
Mumbai
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
plz explain this exercise
please explain this program line by line.
23.02.2019
1403
views
1
comment
0
Ash Ka
Level 13
Calgary
Question about the task
Drawing a rectangle
Java Syntax
,
Level 4
,
Lesson 13
Resolved
What's wrong with the code ?
I thought having println() at the end is adding an extra empty line and that is the problem but even after adding a condition (If condition) such that there are exactly 2 rows and no extra empty rows, still I see the same error
22.02.2019
1764
views
2
comments
0
bri
Level 7
Sevilla
Question about the task
Financial expectations
Java Syntax
,
Level 3
,
Lesson 12
Resolved
What am I missing?
When I press Run, instead of 100 it shows me -1. Not sure what I need to add.
27.01.2019
2143
views
3
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Reinforce the singleton pattern
Java Core
,
Level 5
,
Lesson 12
Under discussion
How to initialize instance in the getInstance method that method always return the same object?
need help
21.02.2019
2439
views
5
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
File in a static block
Java Core
,
Level 5
,
Lesson 12
Under discussion
How to read file properly in this task?
My input is: "Static methods and variables are not linked to objects of the class; they are linked to the class itself. If we create ten Variables objects (see the example at the beginning of this level), we will have ten instanceVariable variables (one for each object) and only one shared (static
22.02.2019
1852
views
3
comments
0
Martin Evtimov
Level 22
Chicago
Question about the task
Spaces
Java Core
,
Level 8
,
Lesson 11
Resolved
Help
Any suggestions?
22.02.2019
1534
views
4
comments
0
Hashirama
Level 26
Port-Harcourt
Question about the task
Finding data inside a file
Java Core
,
Level 8
,
Lesson 11
Under discussion
Help please
They have started again!!!!
21.02.2019
1521
views
3
comments
0
Erick
Level 8
Rockville
Question about the task
Minimum of N numbers
Java Syntax
,
Level 8
,
Lesson 11
Resolved
What exactly am I missing?
So, umm... what's going on here? The main method DOES call getIntegerList method, as well as the getMinimum method (which seems to find the minimum), and it DOES display text on the screen, and it compiles properly. What gives?
22.02.2019
1761
views
5
comments
0
Jeff Jeffy
Level 15
Irvine
Question about the task
Currency exchange
Java Syntax
,
Level 3
,
Lesson 3
Resolved
Can't use returned value
I cant seem to use the value I returned, can someone explain what I'm doing wrong?
13.01.2019
1712
views
3
comments
0
Dedcom
Level 19
Lahore
Question about the task
Different methods for different types
Java Core
,
Level 5
,
Lesson 12
Resolved
whats wrong here?
Integer condition is not working whenever i enter value greater than 128 or less than 0 , but whenever i enter big value like 1299999 then Integer condition works and it prints that this value is an Integer
21.02.2019
1966
views
4
comments
0
Andrey
Level 2
Tula
Under discussion
problems with the first lesson
Greetings to all! Tell me, what's wrong with my code? public class Solution { public static void main(String[] args) { System.out.print("I think being a programmer is cool"); } }
20.02.2019
1382
views
5
comments
0
Eric Soto
Level 3
Tampa
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
I managed to solve it but I am not sure if I understood.
I got it right according to the verification but I feel like I didnt learn what it exactly meant. Was is THAT simple the solution?
21.02.2019
1416
views
1
comment
0
Ovo Leslie
Level 26
Lagos
Question about the task
Multiplication table
Java Syntax
,
Level 3
,
Lesson 6
Resolved
Why I'm I getting an extra column
I seem to get the table right but I am getting the last columns repeated. Why?
31.01.2019
1607
views
3
comments
0
C. Chiang
Level 18
Bryan
Question about the task
OOP: Fix inheritance problems
Java Core
,
Level 5
,
Lesson 2
Resolved
Cannot quite figure out for a while.
Must return Object from a boolean method. How to do?
19.02.2019
2166
views
2
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
OOP: Fix inheritance problems
Java Core
,
Level 5
,
Lesson 2
Under discussion
I am not sure if i understand this task properly
output is: [Thumb does not contain bones, Forefinger does not contain bones, Middle finger does not contain bones, Ring-finger contains bones, Pinky does not contain bones] [Hand contains bones, Leg contains bones, Head contains bones, Body contains bones] Yes
20.02.2019
1327
views
1
comment
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
OOP: Books
Java Core
,
Level 5
,
Lesson 2
Under discussion
What is wrong in my code?
need help
20.02.2019
1410
views
1
comment
0
Serghei
Level 3
Balti
Resolved
Only last condition is wrong....i dont return the minimum of a,b and c
package com.codegym.task.task02.task0216; /* Minimum of three numbers */ public class Solution { public static int min(int a, int b, int c) { //write your code herint min; int mon; if((a <= b) && (b <= c)) mon = a; else mon = c;
20.02.2019
1093
views
1
comment
0
Gurpreet Grewal
Level 4
Mumbai
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
plz help...stuck from 1 day
how to compare these methods?
18.02.2019
2130
views
12
comments
0
suresh rai
Level 3
Question about the task
Contract
Java Syntax
,
Level 1
,
Lesson 6
Under discussion
what is wrong with my program need help
package com.codegym.task.task01.task0121; /* Contract */ public class Solution { public static void main(String[] args) { System.out.println("My name is Amigo"); System.out.println(); System.out.println("I agree to wages of $5000/month in the first year."); Sy
08.01.2019
1747
views
4
comments
0
jack reacher
Level 4
a man from nowhere
Question about the task
Comment out the superfluous
Java Syntax
,
Level 1
,
Lesson 4
Under discussion
clue please
anyone please give a clue
06.09.2018
1984
views
10
comments
0
// Java Poser
Level 18
Cincinnati
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
Need Help Please!
1. I'm not sure how to grab one digit from an integer. 2. I don't know how to grab the next digit from the integer. 3. I'm not sure when to stop my loop.
17.02.2019
1786
views
3
comments
0
Vikas
Level 3
Delhi
Question about the task
Only 20 will do
Java Syntax
,
Level 1
,
Lesson 4
Resolved
task01.task0137 - Only 20 will do
public class Solution { public static int a = 1; public static int b = 3; public static int c = 9; public static int d = 27; public static void main(String[] args) { int result = + a - b + c - d; System.out.println(result); } } 1. Values of variables: Do
30.07.2018
2394
views
5
comments
0
Jeff Jeffy
Level 15
Irvine
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Resolved
What is WRONG?
BlueJ seems to think works properly, so after reading the failed reuirements, I saw that I should use the abs method, but I don't need the abs method! Why must codegym limit my ingenuity with such restraints? How can I do the task with the abs method?
17.02.2019
1654
views
2
comments
0
Kim Ledford Wilson
Level 4
Cleveland
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Below is my code: I just can't get it. I'm missing something help please!
package com.codegym.task.task02.task0217; /* Minimum of four numbers */ public class Solution { public static int min(int a, int b, int c, int d) { //write your code here this.min(a,b); int a1 = (); int a2 = 0; int a3; if (c<=d) { a2 =
13.02.2019
1546
views
3
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
GCD
Java Core
,
Level 4
,
Lesson 8
Resolved
What is wrong here?
need hint
18.02.2019
1620
views
1
comment
0
tony
Level 20
Nis
Question about the task
OOP: Cars
Java Core
,
Level 5
,
Lesson 2
Under discussion
pls help
Please help me to figure out what is wrong with my code. I tested it in Eclipse and I got correct output
16.02.2019
1323
views
2
comments
0
Jarrett “Psalm 91:4” Ridlinghafer
Level 2
Tucson
Under discussion
How to verify my account?
Hi, I've got a notice that I need to verify my account via email however I never received an email from codeGym...is there a way to have it resent or something? Thanks!
17.02.2019
1238
views
1
comment
0
shaan mohd khan
Level 13
Jhansi
Question about the task
In decreasing order
Java Syntax
,
Level 7
,
Lesson 12
Resolved
help me...tried a lot but not able to complete the task
public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int[] array = new int[20]; for (int i = 0; i < 20; i++) { array[i] = Integer.parseInt(reader.rea
09.02.2019
2036
views
2
comments
0
Gurpreet Grewal
Level 4
Mumbai
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
how to compare
How to compare min(int a, int b) and min(int c, int d) ?
18.02.2019
1408
views
1
comment
0
Show more
1
...
341
342
343
344
345
...
371
Please enable JavaScript to continue using this application.