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
  • Cam
    Level 15
    Bogota
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Under discussion
    I don't understand what is failing.Hey guys. I'm a little bit confused. In my mind, this program should be working. But it is not passing the last verification. Can someone please tell me what I am doing wrong?? public static String compare (ArrayList original) { ArrayList sorted = sord(original); int min = 0, max
    • 9/21/20
    • 764views
    • 6comments
    0
  • John Raets
    Level 3
    Not in list
    Question about the task Task with percentages
    Java Syntax, Level 3, Lesson 3
    Under discussion
    What's wrong with this code?public class Solution { public static double addTenPercent(int i) { double c = 100 * 1.1; return c; } public static void main(String[] args) { System.out.println(addTenPercent(9)); } }
    • 9/19/20
    • 527views
    • 2comments
    0
  • Chris
    Level 19
    Newark
    Question about the task Remove and insert
    Java Syntax, Level 7, Lesson 6
    Resolved
    Please help.Can someone help me finish this?
    • 9/21/20
    • 536views
    • 2comments
    0
  • Carli Eubanks
    Level 15
    San Diego
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Under discussion
    I can't find my mistakeI've managed to satisfy all but the last two requirements. I've tried multiple variations and read over my work to try to find my mistake, but whatever it is it's managed to elude me. Any advice would be greatly appreciated.
    • 9/21/20
    • 617views
    • 2comments
    0
  • Youngsan
    Level 41
    Seoul
    Question about the task Hippodrome (part 10)
    Java Multithreading, Level 1, Lesson 16
    Resolved
    Pls help"Oh, and display 10 empty lines after the loop (using System.out.println()) to make it more beautiful.". Seems to be simple, but I seems to misunderstand the problem. Please help me.
    • 9/22/20
    • 638views
    • 5comments
    0
  • Mariam
    Level 9
    Columbus
    Question about the task Going national
    Java Syntax, Level 8, Lesson 11
    Resolved
    The program DOES change the first letter of each word to uppercase but compiler says it does NOT. Please helpThe program DOES change the first letter of each word to uppercase but compiler says it does NOT. Please help
    • 9/16/20
    • 565views
    • 4comments
    0
  • Lawson
    Level 29
    Lagos
    Question about the task Snake (part 12)
    Java Multithreading, Level 2, Lesson 18
    Resolved
    Helpthis isn't supposed to be hard na
    • 9/17/20
    • 598views
    • 0comments
    0
  • Jac
    Level 7
    Birmingham
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Resolved
    I'm getting an output of 'NaN'. Can someone clarify?package com.codegym.task.task05.task0507; /* Arithmetic mean */ import java.io.BufferedReader; import java.io.InputStreamReader; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.i
    • 9/22/20
    • 527views
    • 1comment
    0
  • Satya Vath
    Level 31
    Vijayawada
    Question about the task Space Invaders (Part 9/34)
    Games, Level 0, Lesson 6
    Resolved
    Where is the mistakeHelp
    • 9/10/19
    • 1581views
    • 9comments
    0
  • Manish Sinha
    Level 1
    london
    Question about the task Find a substring
    Java Multithreading, Level 2, Lesson 5
    Resolved
    not sure what is the issue . very eager to know the issue since output is as per the expectation i believe. there must be something minor i guess. pls. helpnot sure what is the issue . very eager to know the issue since output is as per the expectation i believe. there must be something minor i guess. pls. help
    • 9/21/20
    • 533views
    • 3comments
    1
  • 143_Ritik Awachat
    Level 4
    Question about the task Escaping characters
    Java Syntax, Level 3, Lesson 6
    Resolved
    help me guyswhat is the error here can you guys help me
    • 9/21/20
    • 666views
    • 2comments
    0
  • David
    Level 26
    Bucharest
    Question about the task Find a substring
    Java Multithreading, Level 2, Lesson 5
    Resolved
    Need help!! I have the required output I really don't know what to do anymore
    • 8/4/20
    • 754views
    • 2comments
    2
  • Davedabull
    Level 22
    New York City
    Question about the task CRUD 2
    Java Core, Level 7, Lesson 10
    Resolved
    Can someone take a look for me please?Cannot verify 3-6, i think i did it right tho?
    • 9/21/20
    • 525views
    • 3comments
    0
  • Bohdan
    Level 8
    Milan
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    What is the problem?it does all that they requested.
    • 9/21/20
    • 616views
    • 1comment
    0
  • sourav bamotra
    Level 20
    jammu
    Question about the task Static modifiers: part 2
    Java Core, Level 5, Lesson 9
    Under discussion
    task completed. first wrote it on IDE. But why my Ide throws compile error if i directly close the resources in finally block.try{ A = Integer.parseInt(reader.readLine()); B = Integer.parseInt(reader.readLine()); } catch(IOException e){ e.getStackTrace(); } finally{ try{ /*why try catch in final block as well?*/ reader.close(); } catch(IOException e){ e.printStackTrace(); } }
    • 9/20/20
    • 500views
    • 2comments
    0
  • Timothy Strong
    Level 4
    San Diego
    Question about the task This age doesn't work for me…
    Java Syntax, Level 4, Lesson 1
    Under discussion
    Can someone help me with this code. Is the person.adjustAge(person.age) method in the Class Solution. Calling the public void adjustAge(int age) in class Person? How do these two methods tie together?package com.codegym.task.task04.task0401; /* This age doesn't work for me… */ public class Solution { public static void main(String[] args) { Person person = new Person(); System.out.println("Age is: " + person.age); person.adjustAge(person.age); }
    • 10/30/19
    • 2524views
    • 5comments
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Incorrect lines
    Java Core, Level 3, Lesson 11
    Under discussion
    HEEEEEEEEELPI need your help, team
    • 6/24/19
    • 1479views
    • 7comments
    1
  • Koushik Kintali
    Level 9
    Rayagada
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 7
    Resolved
    Unable to identify the errorUnable to identify the error
    • 10/9/18
    • 2314views
    • 4comments
    0
  • Tom ford
    Level 15
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Resolved
    Code works but task not verifiedMy code does exactly as requested. Any suggestions?
    • 9/20/20
    • 591views
    • 2comments
    0
  • John Raets
    Level 3
    Not in list
    Question about the task As simple as 2+2
    Java Syntax, Level 1, Lesson 8
    Under discussion
    My coding is correct but if no value is assigned to the variables a & b how do you know it's 2 + 2?public class Solution { public static void main(String[] args) { //write your code here } public static void sum(int a, int b) { int c = a + b; System.out.print(c); } }
    • 9/20/20
    • 739views
    • 2comments
    0
  • Henrique
    Level 41
    São Paulo
    Question about the task Read online about the median of a sample
    Java Multithreading, Level 6, Lesson 2
    Under discussion
    Code throws exception, don't know how to solveThis code is probably completely wrong, but that's what I was able to do. Message: "Be sure that the sort(Integer[] array) method correctly sorts the data in an array with an even number of elements." When testing, this is the message of the Exception: Exception in thread "main" java.lang.ClassCas
    • 8/6/20
    • 616views
    • 1comment
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Snake (part 12)
    Java Multithreading, Level 2, Lesson 18
    Resolved
    No idea why this isn't validatingOnly other question on this task seems to have the same problem with no answer. Please can someone help
    • 9/16/20
    • 636views
    • 9comments
    0
  • Art
    Level 13
    Chisinau
    Question about the task The isomorphs are coming
    Java Core, Level 2, Lesson 12
    Under discussion
    Wheres the issue?Hi guys, could you help me spot the issue?
    • 3/29/20
    • 1109views
    • 4comments
    0
  • Prassha
    Level 24
    Chagford
    Question about the task Inverted words
    Java Multithreading, Level 2, Lesson 9
    Resolved
    Please help, i have tired and it is giving the correct output but not verifying.I am not sure why this not verifying. Where I am going wrong? Going mad here.
    • 6/28/20
    • 664views
    • 3comments
    0
  • Linda
    Level 2
    Chennai
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    l think I have a problem with min statementAnd my code has errors
    • 9/20/20
    • 670views
    • 1comment
    0
  • Lawson
    Level 29
    Lagos
    Question about the task Fix four mistakes
    Java Core, Level 4, Lesson 8
    Resolved
    HelpI need help please
    • 8/28/20
    • 648views
    • 3comments
    0
  • Weichen Ouyang
    Level 25
    San Jose
    Question about the task Let's count
    Java Core, Level 7, Lesson 10
    Under discussion
    I believe using yield() will achieve the same result with less editing, what is your opinion? public static class Counter extends Thread { @Override public void run() { do { synchronized (Solution.class) { incrementCount(); values[getCount()]++; } Thread.currentThread().y
    • 9/13/19
    • 1488views
    • 3comments
    0
  • WLP
    Level 41
    Question about the task Several superclasses for generics
    Java Collections, Level 5, Lesson 6
    Resolved
    confused about this questionThis is my solution below but it doesn't verify. It works when running - I get the output as coded. Could anyone give me a clue as to what is wrong here please. Thank you!
    • 9/19/20
    • 620views
    • 3comments
    0
  • John Raets
    Level 3
    Not in list
    Question about the task Parenthetical brainteaser
    Java Syntax, Level 3, Lesson 4
    Under discussion
    Where did I go wrong with my brackets in the println?public class Solution { public static void main(String[] args) { System.out.println((2 * (3 + (4 * (5 + (6 * 7)))))); }
    • 9/19/20
    • 767views
    • 1comment
    0
  • narcissus
    Level 5
    .
    Question about the task This age doesn't work for me…
    Java Syntax, Level 4, Lesson 1
    Under discussion
    I solved the task but I have some questions.1. the meaning of line 12 of code and how does it work? 2. when should we use the key word "this"? actually not in this code only I mean all the time.
    • 9/8/20
    • 556views
    • 2comments
    0
  • 1
  • ...
  • 136
  • 137
  • 138
  • 139
  • 140
  • ...
  • 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