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
  • Radim Strapek
    Level 6
    Prague
    Question about the task Maximum of four numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    Can anyone help, please?I can not find the sloution here in help. Please can anyone help me why the 3rd requirement is not green?
    • 29.04.2020
    • 1004views
    • 4comments
    0
  • LucGar
    Level 22
    Bilbao
    Question about the task Splitting a file
    Java Core, Level 8, Lesson 5
    Resolved
    Why the program not work?In intellidea works with archives of my computer, but never close
    • 01.05.2020
    • 842views
    • 2comments
    0
  • Andrew Nguyen
    Level 23
    Toronto
    Question about the task What's today's date?
    Java Syntax, Level 9, Lesson 11
    Resolved
    DEC 365Hi guys, Can you please tell me why my code shows " DEC 365, 2013" as a result? Thanks
    • 01.05.2020
    • 1128views
    • 3comments
    0
  • P S
    Level 3
    Question about the task Calculate the circumference of a circle
    Java Syntax, Level 2, Lesson 2
    Resolved
    Can someone please help me?Primitive Data Types.
    • 29.04.2020
    • 1008views
    • 5comments
    0
  • SOUFIANE DAHIMI
    Level 32
    Marrakech
    Question about the task Chat (part 14)
    Java Multithreading, Level 6, Lesson 15
    Resolved
    Why is it broken ?!! I tried with diffenrent approaches it stiil fails to pass I tried with a bunch of ways but none of them passes . I don't have a clue where did the infinite loop come from even if I change the loops into finite loops (using counter)
    • 26.04.2020
    • 1000views
    • 2comments
    0
  • Jorge Sosa
    Level 20
    Madrid
    Question about the task Encryption
    Java Core, Level 8, Lesson 11
    Resolved
    Correct output, not validatedGetting a bit frustrated with the validator. Most basic encryption here, just adding or substracting, but encryption nonetheless. Am I missing something?
    • 07.07.2019
    • 1690views
    • 4comments
    1
  • Adam Maichrzik
    Level 22
    Katowice
    Question about the task Splitting a file
    Java Core, Level 8, Lesson 5
    Resolved
    I have got and idea. Is it correct?Is my way of thinking correct or I am making logic mistake somewhere? Can this code be repaired?
    • 01.05.2020
    • 815views
    • 2comments
    0
  • Leon J Boczkowski
    Level 10
    Pittsburgh
    Question about the task Min and max in arrays
    Java Syntax, Level 7, Lesson 12
    Under discussion
    Help/The programIt produces the correct result. Can anyone advise on this or give me advice public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); ArrayList<Integer> a = new ArrayList<Integer>();
    • 21.02.2020
    • 1471views
    • 4comments
    0
  • Dawid
    Level 28
    Wroclaw
    Question about the task Yet another adapter
    Java Core, Level 9, Lesson 3
    Under discussion
    Please help ! Please help !
    • 20.04.2020
    • 971views
    • 1comment
    0
  • zachary zambo
    Level 26
    Athens
    Question about the task Hippodrome (part 8)
    Java Multithreading, Level 1, Lesson 16
    Under discussion
    Anyone else have this problem?None of the conditions are validating. I have changed the calls to this.method() and played with the modifiers and error handling, but still no results. Am I missing something or has anyone else dealt with this and fixed it?
    • 30.04.2020
    • 1002views
    • 1comment
    0
  • Benjamin
    Level 18
    Question about the task Sorting even numbers from a file
    Java Core, Level 3, Lesson 11
    Under discussion
    What is wrong hereMy "Mentor" says I have too few lines.... BUT if I write "System.out.printLN(list)" I have too much lines XD Can someone please help ty
    • 30.04.2020
    • 1120views
    • 7comments
    0
  • Adam Maichrzik
    Level 22
    Katowice
    Question about the task Most frequent bytes
    Java Core, Level 8, Lesson 3
    Resolved
    I am stuck, need help :)
    • 30.04.2020
    • 1126views
    • 2comments
    0
  • Andrew
    Level 29
    Seattle
    Question about the task Snake (part 16)
    Java Multithreading, Level 2, Lesson 18
    Resolved
    What does it want from me!?public void checkBorders(SnakeSection head) { if (head.getX() <= 0 || head.getY() <= 0 || head.getX() >= game.getWidth() || head.getY() >= game.getHeight() ) isAlive = false; }
    • 10.04.2019
    • 1928views
    • 9comments
    2
  • Dinesh
    Level 7
    Delhi
    Question about the task Multiplication table
    Java Syntax, Level 3, Lesson 6
    Under discussion
    I am having problem with the alignment of the output. public class Solution { public static void main(String[] args) { //write your code int num=1, i=1; int num1=2; int num2=3; int num3=4; int num4=5; int num5=6; int num6=7; int num7=8; int num8=9; int nu
    • 30.04.2020
    • 886views
    • 2comments
    0
  • yanzy050
    Level 4
    San Francisco
    Question about the task Cat register
    Java Syntax, Level 4, Lesson 2
    Under discussion
    What is happening? I got this kind of error! package com.codegym.task.task04.task0404; /* Cat register */ public class Cat { private static int catCount = 0; public void addNewCat(int catCount) { this.catCount = catCount; } public static void main(String[] args) { Cat cat = new Cat(); cat.addNewCat
    • 14.09.2018
    • 2616views
    • 13comments
    0
  • Syed Huzaifa
    Level 7
    Karachi
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Resolved
    ????the logic I use is t % 5 == 0 {0,5,10,15,20,25,30,35,40,45,50,55,60}----->"Red" t % 5 == 1 {1,6,11,16,21,26,31,36,41,46,51,56} ----->"Green" t % 5 == 2 {2,7,12,17,2,2,27,32,37,42,47,52,57}----->"Green" t % 5 == 3 {3,8,13,18,23,28,33,38,43,48,53,58}----->"Green" t % 5 == 4 {4,9,14,19,24,2
    • 29.04.2020
    • 1336views
    • 5comments
    0
  • Dinesh
    Level 7
    Delhi
    Question about the task Roy G. Biv…
    Java Syntax, Level 3, Lesson 6
    Under discussion
    Objects created but methods didn`t called then how its providing the output on just creation of objectspackage com.codegym.task.task03.task0315; /* Roy G. Biv… */ public class Solution { public static void main(String[] args) { //write your code here Red r = new Red(); /*Orange o = new Orange(); Yellow y = new Yellow(); Green g = new Green();
    • 30.04.2020
    • 1081views
    • 3comments
    0
  • Henrique
    Level 41
    São Paulo
    Question about the task Calculator
    Java Syntax, Level 6, Lesson 8
    Resolved
    Casting in the percentage partHi! My solution worked, so I'm not able to post it here. However, I still don't understand one thing: Why does "((double)b/100) * a;" work and "(double) (b / 100) * a;" doesn't? Thanks! :)
    • 29.04.2020
    • 1239views
    • 5comments
    0
  • Rittu Paul
    Level 6
    Delhi
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    I don't know y is this wrong.Please see if I missed anything. The last condition is not meeting.
    • 30.04.2020
    • 792views
    • 1comment
    0
  • Dinesh
    Level 7
    Delhi
    Question about the task Escaping characters
    Java Syntax, Level 3, Lesson 6
    Under discussion
    I am not getting the Hint in the required condition regarding this taskpublic class Solution { public static void main(String[] args) { //write your code here System.out.println("This is Windows path:"+"C:\Program Files\Java\jdk1.8.0_172\bin""); System.out.println("This is Java string:"+"C:\\Program Files\\Java\jdk1.8.0.172\\bin\\"); } }
    • 30.04.2020
    • 1188views
    • 2comments
    0
  • Luděk Louda
    Level 4
    Prague
    Question about the task Even to the moon!
    Java Syntax, Level 2, Lesson 8
    Under discussion
    I think the code is correct, don't know what's wrong.I think the code is correct, don't know what's wrong. Result is 150.96. Could you help please? public class Solution { public static void main(String[] args) { System.out.println(getWeight(888)); } public static double getWeight(double earthWeight) { double moonWe
    • 30.11.2018
    • 2420views
    • 7comments
    1
  • David
    Level 26
    Bucharest
    Question about the task Writing to a file from the console
    Java Core, Level 3, Lesson 11
    Under discussion
    I don't understand!I dont understand why this works, I have solved this task looking at others solved task. So..it asks to read a file from the console but there is no file readed! Can anyone explain me, please! I dont understand this part very well, Thank you! try{ BufferedReader reader = new BufferedReade
    • 30.04.2020
    • 773views
    • 2comments
    0
  • Mike McKenna
    Level 25
    Wilmington
    Question about the task Writing to a file from the console
    Java Core, Level 3, Lesson 11
    Resolved
    why can't i get by requirement # 5 ? working on IntelliJ code has green arrow . alas requirement #5 is not agreeing . Thanks
    • 21.02.2020
    • 1082views
    • 2comments
    0
  • hidden #10604255
    Level 4
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Resolved
    help a brother out pls!please help.. its giving me a tough problem. it keeps saying error. I want to know y pls..
    • 07.04.2020
    • 1211views
    • 5comments
    0
  • Bazsó Benjámin
    Level 20
    Szombathely
    Question about the task Writing to a file from the console
    Java Core, Level 3, Lesson 11
    Resolved
    5th condition?i also tried writer.write("\n" + s);
    • 15.04.2019
    • 1482views
    • 1comment
    1
  • Agata
    Level 20
    Warsaw
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Resolved
    I can't find the problemI get NumberFormatException: For input string: "String1" but I can't find out why, please help me :)
    • 27.04.2020
    • 1334views
    • 22comments
    0
  • harshshah
    Level 9
    Gandhinagar
    Question about the task Number of days in the year
    Java Syntax, Level 4, Lesson 4
    Resolved
    logical error.for n=3300 is not a leap year but it is showing leapyear.
    • 17.04.2019
    • 1869views
    • 2comments
    0
  • Bryce Lindley
    Level 9
    Olympia
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Under discussion
    Am I close?I took a guess as to using indexOf for the ArrayList. Created Strings shortest and longest. It seems like it should be working but was unsure why I only have one unresolved. Thanks for looking.
    • 30.04.2020
    • 853views
    • 3comments
    0
  • LucGar
    Level 22
    Bilbao
    Question about the task Countdown at the races
    Java Core, Level 6, Lesson 10
    Resolved
    I solved it, but i have a try { while (!current.interrupted() && numSeconds > 0) { Thread.sleep(1000); System.out.println(numSeconds--); a++; } } catch (InterruptedException e) { if (a == 3) { S
    • 18.04.2020
    • 950views
    • 1comment
    0
  • Dinesh
    Level 7
    Delhi
    Question about the task Hello, StarCraft!
    Java Syntax, Level 3, Lesson 4
    Under discussion
    What is Wrong With This Code */ public class Solution { public static void main(String[] args) {
    • 25.04.2020
    • 1093views
    • 4comments
    0
  • 1
  • ...
  • 201
  • 202
  • 203
  • 204
  • 205
  • ...
  • 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