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
Dilip Sahu
Level 2
Mumbai
Question about the task
I'm 15 again!
Java Syntax
,
Level 1
,
Lesson 4
Under discussion
what's wrong with my code?
The value assigned to the variable age must be 15.
1/30/19
1386
views
4
comments
0
KryptoBlack
Level 7
Mumbai
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
Two Different Problems With The Same Code Block
I am unable to understand this runtime error since I am only trying to insert 1 element in the list... java.lang.OutOfMemoryError: Solution.java, method fix, line: 35 But if I just change the order of input, the error vanishes... list.add("rose"); // 0 list.add("love"); // 1 list.add("lyre"); //
11/30/18
1963
views
5
comments
1
Dmitriy Konoplev
Level 11
Khabarovsk
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
Could anyone explain me where i make mistake?
I made new HashMap, then in foreach I swapped values and keys and put them to new Map. Then I cleared Map and put there values and keys.
2/1/19
1597
views
2
comments
0
krishnaprasanna doddapaneni
Level 2
Hyderabad
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
what is wrong in this code
public class Solution { public static void main(String[] args) { print("Java is easy to learn!"); print("Java opens many opportunities!"); } public static void print(String s) { String a = "java is easy to learn!"; String b = "java opens many opportunitie
2/1/19
1665
views
3
comments
0
yanzy050
Level 4
San Francisco
Question about the task
Currency exchange
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
can someone give me a hint on how to display the result twice
public static void main(String[] args) { //write your code here System.out.println(convertEurToUsd(45)); System.out.println(convertEurToUsd(34)); } public static double convertEurToUsd(int eur, double exchangeRate) { //write your code h
8/23/18
2145
views
14
comments
0
Balen Asangbeh
Level 23
Douala
Question about the task
Flip the array
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
please what is wrong with the code
2/1/19
1350
views
2
comments
0
Jerry
Level 1
Cape Town
Question about the task
2 + 3 = 5
Java Syntax
,
Level 0
,
Lesson 8
Under discussion
Im suffering the same problem like others, the compiler is wrong not me.
package com.codegym.task.task01.task0108; /* 2 + 3 = 5 */ public class Solution { public static void main(String[] args) { int a = 3, b = 2; /* Display 2 plus 3 is equal 5 */ /* System.out.print("two") */ System.out.print(b); System.out.print(" plus "); /*
2/1/19
1486
views
3
comments
0
Shipra Nandi
Level 5
Chandigarh
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
what's wrong in this ? tried with paper also
import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here /* Use the keyboard to enter three numbers, and display them in descending order. The displayed numbers must be separated by spaces. Requirements: 1. The
10/3/18
3347
views
9
comments
0
Alex Balandinos
Level 18
Lusaka
Question about the task
Sum of the digits of a three-digit number
Java Syntax
,
Level 3
,
Lesson 12
Under discussion
The output is displaying 15 but still not working saying must return the sum
1/31/19
1536
views
2
comments
0
Usha Mathivanan
Level 15
CHENNAI
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Resolved
Why It isn't getting input from user?
package com.codegym.task.task03.task0318; /* Plan to conquer the world */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader b = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter y
1/31/19
1932
views
3
comments
0
jim smith
Level 22
Cedar Park
Question about the task
Table
Java Core
,
Level 8
,
Lesson 8
Resolved
Is this even solvable?
Anyone have any idea how the 'list' is supposed to come into play?
1/31/19
1678
views
1
comment
0
Darko Jakimovski
Level 18
Kriva Palanka
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
Spent two days on this! Anyone care to help a fellow code lifter?
This is the recommendation I get from the mentor Be sure that the length of the longest sequence is calculated correctly when it is located at the end of the list of entered numbers.f
1/31/19
1610
views
7
comments
0
vikr@nt
Level 9
Cincinatti
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Resolved
Issue with the code
Could anybody tell what is the issue with my code please?
1/31/19
1532
views
4
comments
0
Joy Majumdar
Level 16
Kolkata
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
Please point out my flaw/s ?
Can't get it
1/25/19
1434
views
7
comments
0
jim smith
Level 22
Cedar Park
Question about the task
CRUD 2
Java Core
,
Level 7
,
Lesson 10
Resolved
Command line seems to work but verify step is failing on create/update
I use this is debug input : -c Washington m 04 15 1990 Jefferson f 05 03 1994 BAC m 12 12 2012 and see 3 records get added to allPeople and it prints out 2 3 4 but the verify step doesn't complete without an error. Is there some other condition I am not taking into account? Threading somehow?
1/31/19
1347
views
3
comments
0
Marilyn Free
Level 4
Pensacola
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Cant get yellow or red to display
Cant figure this one out
12/19/18
1943
views
5
comments
0
rsingh04
Level 6
Mumbai
Question about the task
Implement the fight method
Java Syntax
,
Level 5
,
Lesson 5
Resolved
need help?
Its very confusing yet to me,,, please help someone
12/30/18
1984
views
2
comments
0
Roark Hoitt
Level 5
Wilmington
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
Confused why this code doesn't pass?
There is nothing saying to check for equal int's. Any ideas?
1/30/19
1264
views
4
comments
0
Prateek Mishra
Level 8
Bhopal
Question about the task
HashMap of 10 pairs
Java Syntax
,
Level 8
,
Lesson 3
Resolved
My solution is not being accepted. I am very sure its correct. Please help!
... map.put("cantaloupe","fruit"); ...
1/22/19
1505
views
2
comments
0
Sabine Meijran-Prins
Level 7
Enschede
Question about the task
Implement the fight method
Java Syntax
,
Level 5
,
Lesson 5
Resolved
Still do not get it..
What I also do not understand is that you make a cat1 and a cat2 object. you fill the object with data: strength, age, weight. and then a complete another object (anotherCat) can use the data of cat2. I hope you can help me..
1/5/19
1725
views
4
comments
0
bri
Level 7
Sevilla
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 4
Archived
Why am I failing on the negative one?
where did I go wrong?
1/28/19
2087
views
4
comments
0
Marina
Level 18
Chisinau
Question about the task
Multiplication table
Java Syntax
,
Level 4
,
Lesson 10
Resolved
please help me
I can't understand what's wrong!
1/30/19
2670
views
2
comments
0
Brian
Level 18
Grand Rapids
Question about the task
Shared last names and first names
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Add 10 People to Map, and Add People With Same Last Name
I'm at a loss. As far as I can tell, I've met all of the conditions. Can anyone see why the third and fourth requirements are not being met?
1/29/19
2195
views
12
comments
0
Arko Sarkar
Level 8
Mumbai
Question about the task
Checking the order
Java Syntax
,
Level 7
,
Lesson 9
Resolved
How to solve this?
Didn't add condition for if the lengths are equal. Getting output if first/second is bigger than its next value, otherwise stuck and can't go ahead!
8/31/18
1881
views
2
comments
0
hidden #10424566
Level 7
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
Please help my code puts the right output but there is still an error
1/30/19
1230
views
2
comments
0
Dilip Sahu
Level 2
Mumbai
Under discussion
The value assigned to the variable age must be 15.
public class Solution { public static void main(String[] args) { String name = "I'm"; String name1 = "again!"; int ag = 2; int age = ag + 13; //int money = 500; //int weight = 70; System.out.println(name+" "+age+" "+name1); } }
1/30/19
1371
views
1
comment
0
anotherLearner
Level 18
Barcelona
Question about the task
Checking the order
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Cannot verify 4th condition
Cannot verify 4th condition
10/22/18
1725
views
3
comments
0
Alex Balandinos
Level 18
Lusaka
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Resolved
Hey there tried another way still get the same error..can anyone help me find the solution
1/29/19
2109
views
3
comments
0
Ranjit Kumar Rajbanshi
Level 4
Kolkata
Question about the task
Don't feel like it? Do it anyway.
Java Syntax
,
Level 1
,
Lesson 8
Under discussion
i did this task all correct but its show u r failed
why?
1/30/19
1398
views
2
comments
0
Pawan Harde
Level 4
Mumbai
Question about the task
Cats in the Universe
Java Syntax
,
Level 4
,
Lesson 2
Resolved
cant get the last condition
need HELPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
10/2/18
1783
views
5
comments
0
Show more
1
...
348
349
350
351
352
...
374
Please enable JavaScript to continue using this application.