CodeGym
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
  • Willard Roseberry
    Level 11
    Brigham City
    Question about the task Maximum in an array
    Java Syntax, Level 7, Lesson 4
    Resolved
    int cannot be converted to int [] this is the error I am getting with my return max value on line 42. Any idea on how to fix this? Thankspackage com.codegym.task.task07.task0701; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; /* Maximum in an array */ public class Solution { public static void main(String[] args) throws Exception { int[] array =
    • 30.11.2019
    • 2894views
    • 2comments
    1
  • Błażej Kuśmirek
    Level 13
    Wroclaw
    Under discussion
    Is it working as it should?I'm only able to proceed with solving tasks which are already translated to my native language (polish). I'm not able to see requirements of tasks in English. I can spent dark matter to unlock further lessons, but without any practice tasks. Is this app designed to work that way?
    • 29.11.2019
    • 993views
    • 1comment
    2
  • James
    Level 5
    Cincinnati
    Question about the task Predictions
    Java Syntax, Level 3, Lesson 8
    Resolved
    I'm getting an error due to a typo.This code works as intended. I've run it multiple times and get the correct text printing to the screen. I've printed out each variable separately to confirm that they contain the correct values and they do. Although my code compiles with no issues, I'm getting an error due to a typo that ISN'T ther
    • 30.11.2019
    • 981views
    • 1comment
    0
  • catalinene
    Level 29
    Greven
    Question about the task We don't need repeats
    Java Syntax, Level 8, Lesson 8
    Resolved
    Ouput looks good, task is not validatedIf I understood correctly, as soon as a person shares the same first name with a 2nd person, then we remove them from the map. And my code does that, however it fails validation: " The removeFirstNameDuplicates() method must remove from the map all people who have the same first name. " Thanks in a
    • 29.11.2019
    • 1554views
    • 5comments
    0
  • Aastha Khanna
    Level 5
    Question about the task 1 to 10
    Java Syntax, Level 4, Lesson 10
    Under discussion
    Why does this loop print 1 indefinitely? int i=1; while(i<=10) { System.out.println(i); i=i++; }
    • 31.05.2019
    • 1383views
    • 7comments
    0
  • Paul
    Level 24
    Vienna
    Question about the task Duplicating words
    Java Syntax, Level 7, Lesson 9
    Under discussion
    I don't understand why it won't pass testingthe result is: grandfather grandfather grandmother grandmother ... ... ... That is how it should be, right?
    • 19.11.2019
    • 1232views
    • 2comments
    0
  • MecoS
    Level 16
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Under discussion
    Please Help... i think i don't Understand the question discussed. Why it can't function?package com.codegym.task.task07.task0712; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; /* Shortest or longest */ public class Solution { public static void main(String[] args) throws Exception { ArrayList da
    • 28.11.2019
    • 1231views
    • 2comments
    0
  • Niladri pradhan
    Level 33
    Mumbai
    Question about the task Chat (part 16)
    Java Multithreading, Level 6, Lesson 15
    Under discussion
    whats wrongException condition
    • 28.11.2019
    • 961views
    • 1comment
    0
  • Kris
    Level 9
    Englewood
    Resolved
    Correct output, but not satisfying conditionspublic class Solution { public static void main(String[] args) throws IOException { BufferedReader buff = new BufferedReader(new InputStreamReader(System.in)); //write your code here int max = Integer.MAX_VALUE; ArrayList<String> list = new ArrayList<&g
    • 29.11.2019
    • 1077views
    • 7comments
    0
  • krystian
    Level 9
    Kozle
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Help!!!
    • 29.11.2019
    • 866views
    • 1comment
    0
  • Azamat Aminov
    Level 41
    Tashkent
    Question about the task Sorting bytes
    Java Core, Level 8, Lesson 3
    Resolved
    Condition 3 is not satisfied..
    • 29.11.2019
    • 1084views
    • 2comments
    0
  • TYLOR WAITS-MONDRAGON
    Level 13
    Chicago
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    Any help on why this won't pass codegym tests? My solution is displaying the longest string or strings, but codegym validator is not happy with the third and fourth criteria. Anyone have any suggestions on what I can alter to make it happy?
    • 29.11.2019
    • 873views
    • 1comment
    0
  • Vaibhavi
    Level 5
    Vijayawada
    Question about the task Sam I Am
    Java Syntax, Level 3, Lesson 6
    Under discussion
    What is wrong with this questiontried with all possible combinations still the answer shows it as wrong
    • 29.11.2019
    • 1388views
    • 1comment
    0
  • Kent Hervey
    Level 19
    Question about the task Family census
    Java Syntax, Level 7, Lesson 12
    Under discussion
    can a class have an reference variable of declared type of that class Can a class have an reference variable of declared type of that class?? This assignment seems to say "yes", but that is really surprising. private Human father; and private Human mother; I thought well maybe codegym.cc wants us to make father and mother static, but then that would not work with
    • 23.11.2019
    • 1369views
    • 3comments
    0
  • ilian44
    Level 30
    Veliko Turnovo
    Question about the task Rarest bytes
    Java Core, Level 8, Lesson 3
    Resolved
    output all keys who's value's are equal to min and still the task failed??
    • 28.11.2019
    • 1223views
    • 2comments
    0
  • Sarah Suß
    Level 25
    Hamburg
    Under discussion
    IntelliJ won't load excercises maybe language problem, how do I change System Language?Hey, so I'm in level 5 now but never used IntelliJ, because it won't show the excersises past Level 2. Is that because my "Teaching Language" is German and the German translation stoppt after Level 2? Is there anyway to resolve this? Like how do I change the Language of all lessons to English?
    • 24.11.2019
    • 879views
    • 1comment
    1
  • MecoS
    Level 16
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Under discussion
    I don't understand why this did not function..Please help.
    • 28.11.2019
    • 880views
    • 1comment
    0
  • Artur Jarosz
    Level 30
    Lublin
    Question about the task Sequential file output
    Java Core, Level 6, Lesson 13
    Under discussion
    Can't find an error.Hi all. Can't find an error. The message is "Be sure that the getFileContents method returns all the file contents, not just a part of it. " I have tried many files and everytime the output is correct. Can someone give me a little hint? Thanks!
    • 28.11.2019
    • 1060views
    • 1comment
    0
  • Cristian
    Level 16
    Bucharest
    Question about the task One large array and two small ones
    Java Syntax, Level 7, Lesson 4
    Under discussion
    The last condition isn't acomplished. Why? Thanks a lot.package com.codegym.task.task07.task0705; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; /* One large array and two small ones */ public class Solution { public static void main(String[] args) throws Exception { int[] list = new int[20];
    • 30.10.2019
    • 1175views
    • 2comments
    2
  • Vasagio
    Level 5
    Gdynia
    Under discussion
    Level 3, Lesson 3I click on "verify" and nothing happens. Tried to refresh page couple of times, but it's still the same. Also, in previous task with "repeat the following code" there is no code, just blank space. In the task there is nothing under "requirements".
    • 06.11.2019
    • 771views
    • 1comment
    1
  • Chucky1985
    Level 3
    Regensburg
    Under discussion
    Dividing is good - No Class in the treeI have a problem to run all of the excercises in Level 3. There is no class tree behind, I´m not able to run any code. What class do I need to implement, where to implement the main method? Is this a bug or have I missed out all this info?
    • 07.11.2019
    • 1198views
    • 2comments
    1
  • Erhan H.
    Level 23
    Istanbul
    Question about the task Prices 2
    Java Core, Level 8, Lesson 11
    Under discussion
    Need helpNeed help
    • 27.11.2019
    • 1144views
    • 3comments
    0
  • Ethan
    Level 7
    Hannover
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    why isn't it working???package com.codegym.task.task04.task0420; /* Sorting three numbers */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.i
    • 26.11.2019
    • 1358views
    • 4comments
    0
  • chinchillo
    Level 6
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Any idea whats wrong?Seems right to me.
    • 17.11.2019
    • 770views
    • 3comments
    0
  • Ethan
    Level 7
    Hannover
    Question about the task This age doesn't work for me…
    Java Syntax, Level 4, Lesson 1
    Under discussion
    my program fails over and over! and idk why... please helppublic class Solution { public static void main(String[] args) { Person person = new Person(); System.out.println("Age is: " + person.age); person.adjustAge(person.age); //System.out.println("Adjusted age: " + person.age); } public static class Person {
    • 25.11.2019
    • 1157views
    • 5comments
    0
  • Nicolas Huet
    Level 41
    Provins
    Question about the task Working with Java 8's DateTime API
    Java Collections, Level 10, Lesson 10
    Under discussion
    And of course exact same problem here as the previous taskAny help would be very welcomed :)
    • 27.11.2019
    • 833views
    • 2comments
    0
  • Andrew
    Level 29
    Seattle
    Question about the task Chat (part 16)
    Java Multithreading, Level 6, Lesson 15
    Resolved
    Can't get a < break; >Take a look at the bottom of the Client class. I've tried both switch block and if-else block and the results are the same. I'm wracking my brain to think of why the exception wouldn't be thrown correctly. I tried putting the exception test just after receive(), but it REALLY didn't like that. Al
    • 28.05.2019
    • 1193views
    • 5comments
    0
  • Serg
    Level 23
    Tyumen
    Question about the task Family relations
    Java Syntax, Level 2, Lesson 2
    Under discussion
    Why code is written like this: man.wife = woman; woman.husband = man; ?What does the code mean? man.wife = woman; woman.husband = man; Why is a variable set like this? man.wife woman.husband And what is the value of this variable? How can it be used? And the main thing: why variables are set like this - through a point, using a point?
    • 18.04.2019
    • 1302views
    • 1comment
    1
  • Francisco Rey
    Level 3
    Carluke
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    what's wrong? It is doing what is asked, but not completing don't know why.
    • 27.11.2019
    • 903views
    • 2comments
    0
  • LucGar
    Level 22
    Bilbao
    Under discussion
    Problem "no class to display"Hello, i am have a problem (i think) with the first lesson of the level 3, when i try to do the task in the window appear "no class to display", and this appear in the rest of task.
    • 09.11.2019
    • 940views
    • 3comments
    1
  • 1
  • ...
  • 250
  • 251
  • 252
  • 253
  • 254
  • ...
  • 372
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
  • Affiliate Program
Company
  • About us
  • Contacts
  • Reviews
  • Press Room
  • CodeGym for EDU
  • FAQ
  • Support
CodeGym CodeGym is an online course for learning Java programming from scratch. This course is a perfect way to master Java for beginners. It contains 1200+ tasks with instant verification and an essential scope of Java fundamentals theory. To help you succeed in education, we’ve implemented a set of motivational features: quizzes, coding projects, content about efficient learning, and a Java developer’s career.
Follow us
Interface language
English
Deutsch Español हिन्दी Français Português Polski বাংলা 简体中文 मराठी தமிழ் Italiano Bahasa Indonesia 繁體中文 Nederlands 日本語 한국어 Bulgarian Danish Hungarian Basa Jawa Malay Norwegian Romanian Swedish Telugu Thai Українська Filipino Turkish Azərbaycan Русский Vietnamese
Programmers Are Made, Not Born © 2025 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2025 CodeGym