CodeGym
Promotion
CodeGym University
Java FullStack
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
  • MecoS
    Level 16
    Question about the task In decreasing order
    Java Syntax, Level 7, Lesson 12
    Under discussion
    I made a bouble sort But it fail the test. Why?
    • 12/3/19
    • 930views
    • 2comments
    0
  • Sokhib
    Level 7
    Makati
    Question about the task Static methods for cats
    Java Syntax, Level 6, Lesson 8
    Under discussion
    what am i supposed to do here?can anyone plz help?
    • 1/9/19
    • 1830views
    • 3comments
    2
  • chinna gnanesh
    Level 9
    Chennai
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Resolved
    Verification is failinghelp me
    • 12/3/19
    • 1036views
    • 3comments
    0
  • Willard Roseberry
    Level 11
    Brigham City
    Question about the task LinkedList and ArrayList
    Java Syntax, Level 8, Lesson 6
    Under discussion
    how do i return an array and a linked list? public class Solution { public static Object createArrayList() { ArrayList cats = new ArrayList<>(); return ArrayList; } public static Object createLinkedList() { //write your code here } public static void main(String[] args) {
    • 12/3/19
    • 1197views
    • 1comment
    0
  • Jeff
    Level 6
    Taco Town
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 7
    Under discussion
    Cannot meet last condition This for else if stuff makes my brain hurt, have no idea how to make this math stuff chooch, help me brother
    • 11/22/19
    • 1498views
    • 2comments
    0
  • KIN SOCHEAT
    Level 34
    Phnom Penh
    Under discussion
    hi some one can setScore()hi some one can setScore()
    • 9/1/19
    • 1162views
    • 4comments
    0
  • John
    Level 27
    Washington DC
    Question about the task Synchronized methods
    Java Core, Level 7, Lesson 10
    Under discussion
    Why does method3 need the synchronized keyword?Since param is ONLY accessed in method3 and nowhere else...
    • 11/11/19
    • 1272views
    • 2comments
    0
  • Hendra
    Level 8
    Medan
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Under discussion
    I'm stuck with the last requirement...help me please package com.codegym.task.task04.task0409;
    • 12/2/19
    • 1232views
    • 1comment
    0
  • Felipe Fallas
    Level 3
    San Jose
    Under discussion
    whats wrong with my variables public class Solution { public static void main(String[] args) { int a = 5; int b=7; int sum = a+b; int product=a*b; System.out.println(sum); System.out.println(product); } } so yeah i don't get what do they mean with declare the var
    • 12/2/19
    • 1035views
    • 2comments
    0
  • Willard Roseberry
    Level 11
    Brigham City
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Resolved
    can not figure it out. Any help with n?
    • 12/2/19
    • 1619views
    • 0comments
    0
  • Robert Constantinescu
    Level 1
    Bucharest
    Question about the task CRUD 2
    Java Core, Level 7, Lesson 10
    Resolved
    Is anyone having a sample input?I think the below code works, but to be fair, i have tested it with the below arguments -c Christian "m" 04 15 1990 is anyoane knowing how the input for this task is? Thanks
    • 12/1/19
    • 1781views
    • 2comments
    0
  • oli blaustrom
    Level 18
    Luzern
    Question about the task The end
    Java Syntax, Level 7, Lesson 12
    Resolved
    As far as I can tell output is correct but fails // Display the list, each value on a new line.Can't figure it out. Someone earlier had an empty string in the list, I checked for that. This program doesn't. Any insight?
    • 11/30/19
    • 1743views
    • 2comments
    0
  • Vaibhavi
    Level 5
    Vijayawada
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Under discussion
    please helpPlease tell where I am going wrong
    • 12/2/19
    • 1217views
    • 1comment
    0
  • david
    Level 8
    Edgewater
    Under discussion
    Help!Well, the site keeps showing the message to me that my code do not pass the last two verifications, even when my code works perfectly fine. Does anyone have any idea why my code doesn't work? package com.codegym.task.task07.task0708; import java.io.BufferedReader; import java.io.InputStreamReade
    • 12/2/19
    • 1058views
    • 2comments
    0
  • Vaibhavi
    Level 5
    Vijayawada
    Question about the task This age doesn't work for me…
    Java Syntax, Level 4, Lesson 1
    Under discussion
    lesson unbale to understandplease explain
    • 11/29/19
    • 1101views
    • 2comments
    0
  • Vaibhavi
    Level 5
    Vijayawada
    Question about the task Price of apples
    Java Syntax, Level 4, Lesson 1
    Under discussion
    unable to understandPlease help
    • 11/29/19
    • 1255views
    • 2comments
    0
  • jamylam
    Level 26
    Nairobi
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Resolved
    kindly assist stubborn errorI dont understand the error am getting that each element should be displayed on a new line. That is the result am getting when its displayed so I cant see the mistake i have done..
    • 12/1/19
    • 1280views
    • 2comments
    0
  • AP
    Level 15
    Bodmin
    Under discussion
    Not able to run the code in intellijI have installed intellij and also the codegym plugin however, when I write the solution, I am not able to run it in intellij. I can only verify it. I want to run the code in intellij similar to what we have in condegym site. Can someone help?
    • 12/1/19
    • 1302views
    • 1comment
    0
  • yehuda b
    Level 23
    Beersheba
    Question about the task Describing numbers
    Java Syntax, Level 4, Lesson 7
    Archived
    Was trying an out of the box solution, and I got: Exception in thread "main" java.lang.StackOverflowError, could someone explain why?package com.codegym.task.task04.task0427; /* Describing numbers */ import java.io.*; import java.util.Scanner; public class Solution { static Scanner scan = new Scanner(System.in); static int number = scan.nextInt(); Solution solu = new Solution(); int newNumber() { numb
    • 11/28/19
    • 1259views
    • 4comments
    0
  • Anonymous #10539714
    Level 7
    Question about the task Expressing ourselves more concisely
    Java Syntax, Level 7, Lesson 6
    Archived
    Help On - Expressing ourselves more concisely I don't understand why my variable "len" doesn't take on the shortest string? I don't believe I'm using the length() method incorrectly. Please help. package com.codegym.task.task07.task0709; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; /* Express
    • 12/1/19
    • 1029views
    • 1comment
    0
  • Andres
    Level 4
    Reedley
    Question about the task Currency exchange
    Java Syntax, Level 3, Lesson 3
    Under discussion
    where did i go wrongcan anyone tell me where i went wrong
    • 12/1/19
    • 1061views
    • 1comment
    0
  • Andres
    Level 4
    Reedley
    Question about the task Display right away
    Java Syntax, Level 3, Lesson 3
    Under discussion
    can some one tell me where I went wrongpackage com.codegym.task.task03.task0302; /* Display right away
    • 11/30/19
    • 1013views
    • 2comments
    0
  • Alvin B
    Level 8
    Newark
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Conditions for not displaying color not met. WHY?Please offer any suggestion why the compiler won't accept this program. Thanks
    • 11/28/19
    • 1586views
    • 3comments
    0
  • 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 =
    • 11/30/19
    • 3057views
    • 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?
    • 11/29/19
    • 1166views
    • 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
    • 11/30/19
    • 1117views
    • 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
    • 11/29/19
    • 1729views
    • 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++; }
    • 5/31/19
    • 1573views
    • 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?
    • 11/19/19
    • 1377views
    • 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
    • 11/28/19
    • 1388views
    • 2comments
    0
  • 1
  • ...
  • 252
  • 253
  • 254
  • 255
  • 256
  • ...
  • 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