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
  • Liliane Top
    Level 24
    Amsterdam
    Question about the task Finding data inside a file
    Java Core, Level 8, Lesson 11
    Resolved
    Just for a better understandingWhy is this code failing the test?
    • 1/8/21
    • 433views
    • 1comment
    0
  • Liliane Top
    Level 24
    Amsterdam
    Question about the task Finding data inside a file
    Java Core, Level 8, Lesson 11
    Resolved
    I copied the solution and I still fail the testOr am I missing something?
    • 1/8/21
    • 420views
    • 1comment
    0
  • Andrei
    Level 41
    Question about the task CRUD
    Java Core, Level 7, Lesson 10
    Under discussion
    I don't understand why it isn't creating a new person to the list when passing the provided arguments in the exampleHello, I go to Run -> Edit configurations -> I add the program arguments -c Washington m "04 15 1990". This, normally should create a new person and add it to the list, no? At least this is what I understand from the switch case "-c". Then, I go back to Run -> Edit configurations -> I
    • 1/8/21
    • 627views
    • 7comments
    0
  • Daniel Whyte
    Level 17
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Under discussion
    t % 5I don't understand what t % 5 actually does and why this seems to then mean the higher numbers are then covered.
    • 1/7/21
    • 472views
    • 1comment
    0
  • Liliane Top
    Level 24
    Amsterdam
    Question about the task Building a file
    Java Core, Level 8, Lesson 11
    Resolved
    How does the buffer work?I don't understand why the the buffers don't overwrite the existing text. If I write several buffers to the same outputfile. How does it know where to start? FileOutputStream fos = new FileOutputStream(fileComposite);//if I do not set the "append" to true //iterate over the map with filen
    • 1/8/21
    • 824views
    • 4comments
    0
  • Dinesh
    Level 7
    Delhi
    Question about the task Maximum of four numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Last condition not satisfied import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String n1 = reader.readLine(); int num1= Integer.parseInt(n1)
    • 1/6/21
    • 724views
    • 11comments
    0
  • Liliane Top
    Level 24
    Amsterdam
    Question about the task Building a file
    Java Core, Level 8, Lesson 11
    Resolved
    Very confused as what is wrongThe validation is a bit off. As it claims I do not close the stream. But maybe I am not allowed to use a TreeMap for this task?
    • 1/7/21
    • 473views
    • 1comment
    0
  • orangepeeler
    Level 14
    Not in list
    Question about the task Sorting even numbers from a file
    Java Core, Level 3, Lesson 11
    Resolved
    What's wrong with my code?I am having trouble fulfilling the fourth condition, even though everything looks fine when I debug (lines 25 -31). Please help! thanks in advance
    • 1/2/21
    • 667views
    • 2comments
    0
  • Dmitri
    Level 22
    Seversk
    Question about the task CRUD
    Java Core, Level 7, Lesson 10
    Under discussion
    Any ideas what is wrong?Looks like my code is doing what is intended...
    • 1/6/21
    • 448views
    • 5comments
    0
  • gopalkingsuper@gmail.com
    Level 3
    मुंगेली
    Under discussion
    Dark Matter?please give me dark matter. I completed all task. please.........
    • 1/7/21
    • 463views
    • 0comments
    0
  • Andrei
    Level 41
    Question about the task Synchronized president
    Java Core, Level 7, Lesson 4
    Under discussion
    If the exercise alraeady gives out TRUE when run, what is the point of the static block and the synchronized block?Can someone please give more details as to what they are trying to teach with this exercise? public class OurPresident { private static OurPresident president; private OurPresident() { } static { synchronized (OurPresident.class){ president = new OurPresid
    • 1/7/21
    • 636views
    • 4comments
    0
  • Riya
    Level 15
    Indore
    Question about the task Bridges
    Java Core, Level 4, Lesson 8
    Resolved
    separate files...!how do I create separate files on smartphone pls help...
    • 12/12/20
    • 512views
    • 2comments
    0
  • Maxim Raitin
    Level 20
    Tomsk
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Resolved
    It works on Intellij IDEAIt works on Intellij IDEA public class Main { public static void main(String[] args) throws Exception { ArrayList list = new ArrayList(); list.add("rose"); list.add("love"); list.add("lyre"); list.add("adamos"); list.add("phill"); list.a
    • 1/7/21
    • 677views
    • 5comments
    0
  • Anonymous #10436715
    Level 38
    Question about the task Restaurant (part 10)
    Java Multithreading, Level 9, Lesson 15
    Under discussion
    I have no idea where I'm wrong.Does anybody have the validator's input data and required response? I checked with various input data and all seemed good for me...
    • 5/21/20
    • 792views
    • 1comment
    0
  • Yildi06
    Level 1
    Stuttgart
    Under discussion
    Bei der Aufgabe muss ich das Geburtsjahr herausfinden und wie kann das hier richtig sein, ich dachte man kann nur mit ints rechnen, aber hier wird keins angegebenpackage de.codegym.task.task01.task0103; /* Mein junger Freund */ public class Solution { public static void main(String[] args) { System.out.println(3126 - 8); } }
    • 5/22/20
    • 585views
    • 0comments
    0
  • Mohan Amilineni
    Level 22
    Brisbane
    Question about the task Tracking changes
    Java Core, Level 9, Lesson 11
    Under discussion
    Not able to understand requirement completely, need help!Hi, Tried multiple solutions, couldn't resolve it. Also I couldn't find a complete working solution in colleagues comments for this task. Please post a complete working solution, so that I can do reverse engineering and then try to understand the requirement. Honestly, the requirement is bit conf
    • 5/25/20
    • 460views
    • 0comments
    0
  • Martin Adamec
    Level 1
    Nachod
    Question about the task Finding data inside a file
    Java Core, Level 8, Lesson 11
    Under discussion
    Why does it not validate?What's wrong? Both of my solutions seem to work correctly when I test them manually.
    • 5/25/20
    • 567views
    • 0comments
    0
  • AnnemiekFF
    Level 41
    Breda
    Question about the task Recursion for mathematical expressions
    Java Collections, Level 4, Lesson 2
    Under discussion
    Tweaked some more, still not correct?I am sure this is becoming waaaay more complicated than it should be. I have tweaked it again, as I found a few cases that didn't work. Now I still can't pass it, but I have no clue where to look for next?
    • 5/27/20
    • 641views
    • 0comments
    0
  • Brandon Leirer
    Level 7
    Keller
    Question about the task Describing numbers
    Java Syntax, Level 4, Lesson 7
    Archived
    if you are having trouble with the last requirement...try changing the input to a number outside of the range like (1000, 0, or -1) and see what gets returned in output. That will set you on the right path.
    • 5/28/20
    • 666views
    • 0comments
    0
  • Naweed
    Level 2
    Kabul
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Under discussion
    Finally Find itpackage com.codegym.task.task02.task0205; /*
    • 5/30/20
    • 543views
    • 0comments
    0
  • Lam Jok
    Level 10
    Under discussion
    The CodeGym server is unavailable. Wait a little, restart IntelliJ IDEA and try againCan someone help me with this error. Thanks in advance!
    • 5/30/20
    • 564views
    • 0comments
    0
  • Prassha
    Level 24
    Chagford
    Question about the task Request parser
    Java Core, Level 5, Lesson 12
    Under discussion
    Hi, please help me. I am getting the correct output with url string (line 27 )but not getting the same output with when I use s = reader.readLine(); line 24. s = reader.readLine(); this is causing entire program to crash. Tried with Scanner also.
    • 5/31/20
    • 451views
    • 0comments
    0
  • Luke Chapman
    Level 3
    Braddon
    Under discussion
    Cant see the output on intellij with CodeGym PluginThis is crucial as you cant debug your code if you dont know what it's outputting.
    • 5/31/20
    • 457views
    • 0comments
    0
  • Niklas Braun
    Level 33
    Freiburg
    Question about the task Make a word chain
    Java Multithreading, Level 2, Lesson 9
    Under discussion
    Can't figure out what's wrong?Program works with own implementations, but the last two requirements are still not checked?
    • 5/31/20
    • 481views
    • 0comments
    0
  • Dinesh
    Level 7
    Delhi
    Under discussion
    I am unable to print the null value programmatically of the following statement.If a variable of a reference (composite) type isn't storing a reference to an object, then it stores what is known as a 'null reference'. IF String s; & String s=null; are same than why i am not getting null as output. Tried 2 Ex as follows but didn`t get null as output. 1. class Person{
    • 1/6/21
    • 489views
    • 5comments
    0
  • Dinesh
    Level 7
    Delhi
    Under discussion
    I want output upto 2 decimal place only. 31.40//The output is 31.400000000000002 public class Codegym { public static void main(String[] args) { printCircleCircumference(5); } public static void printCircleCircumference(int radius) { //write your code here double result = 2*3.14*radius; System.out.p
    • 1/7/21
    • 683views
    • 5comments
    0
  • Solanki Dhruv
    Level 18
    Surat
    Question about the task Identical words in a list
    Java Syntax, Level 10, Lesson 11
    Under discussion
    I got right result...but still fail on website.?
    • 12/2/18
    • 1662views
    • 6comments
    0
  • Ivan Duka
    Level 22
    Winnipeg
    Question about the task Array of string lists
    Java Syntax, Level 10, Lesson 11
    Under discussion
    How to Create an Array of Parameterized TypesHi! Please help, I am not sure why it does not pass the tests. I strongly suspect that it is about line 20: ArrayList[] result = (ArrayList[])new ArrayList[size]; I tried several ways to declare this array but no luck. As per Oracle's documentation, we Cannot Create Arrays of Parameteriz
    • 4/7/19
    • 2791views
    • 5comments
    5
  • Gellert Varga
    Level 23
    Szekesfehervar
    Under discussion
    Reference conversions: widening and narrowingFrom the Oracle's website: "A widening reference conversion exists from any reference type S to any reference type T, provided S is a subtype of T. " "Narrowing reference conversions: From any reference type S to any reference type T, provided that S is a proper supertype of T. " 1.) On base of th
    • 1/6/21
    • 797views
    • 4comments
    0
  • Odeh Osayande Vincent
    Level 1
    Limerick
    Under discussion
    algorithmDesign an Algorithm for the following Java application that asks a customer to: enter the quantity of items requested from a mail-order catalogue, and the price of each item. The program will then return & display the totalCost of the required items. The results are formatted to
    • 5/1/20
    • 826views
    • 0comments
    0
  • 1
  • ...
  • 101
  • 102
  • 103
  • 104
  • 105
  • ...
  • 374
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 © 2026 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2026 CodeGym