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
  • Ash Ka
    Level 13
    Calgary
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Under discussion
    My code seems correct but it does not workMy code seems correct but it does not work
    • 5/9/19
    • 1424views
    • 5comments
    0
  • MakinTosH
    Level 20
    Vilnius
    Question about the task UnsupportedFileName
    Java Core, Level 8, Lesson 8
    Under discussion
    Can't check the string right...Is something wrong with validating string or the exception is not thrown?
    • 5/14/19
    • 1537views
    • 1comment
    0
  • sailaja
    Level 3
    Hyderabad
    Under discussion
    Write a function that computes the minimum of four numbers. The function min(a, b, c, d) should use (call) the function min(a, b)package com.codegym.task.task02.task0217; /* Minimum of four numbers */ public class Solution { public static int min(int a, int b, int c, int d) { int minimum; int e= min(a,b); if(c<=d && c<=e) { minimum = c; }else {
    • 5/14/19
    • 1571views
    • 2comments
    0
  • sailaja
    Level 3
    Hyderabad
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Under discussion
    I am not sure getting the typo error.Can someone helppackage com.codegym.task.task02.task0205; /* Pay raise */ public class Solution { public static void main(String[] args) { hackSalary(7000); } public static void hackSalary(int a) { //write your code here int salary=a+1000; System.out.println("Your sal
    • 5/11/19
    • 1656views
    • 4comments
    0
  • JavaJavaJava
    Level 3
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Under discussion
    i need help to find the errorpackage com.codegym.task.task02.task0205; /* Pay raise */ public class Solution { public static void main(String[] args) { hackSalary(7000); } public static void hackSalary(int a) { int Salary = a; int NewSalary= a+1000; System.out.println("Your salary
    • 5/6/19
    • 2078views
    • 7comments
    0
  • Vadym Opalenyk
    Level 10
    Vyshneve
    Question about the task Three numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    How to make a taskHow to make a task
    • 5/13/19
    • 1788views
    • 5comments
    0
  • Husain Kothari
    Level 20
    Mumbai
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Under discussion
    It says if an empty string is entered into after the number, it should not lose the number. I am printing the number. What seems to be the problem? public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); HashMap map = new HashMap(); while(true) { String t = reader.readLine(); if(t
    • 5/11/19
    • 1902views
    • 1comment
    0
  • Ryan
    Level 7
    edmonton
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 7
    Resolved
    Failing verification despite getting correct results. My own run tests pass but I keep failing in the verify. Can someone explain why?
    • 5/13/19
    • 1639views
    • 3comments
    0
  • Johnson Jose
    Level 10
    Edinburgh
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    I am getting the correct output in IntelliJ but is failing the last condition here. Why?Any help will be appreciated.
    • 5/14/19
    • 1490views
    • 2comments
    0
  • Kian Sun
    Level 5
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    Returning values inside an if-else statement?Hi! I initially tried solving this task by declaring an int variable "result", doing the comparisons and setting "result" equal to a/b/c depending on the comparison, and returning "result" at the end of the method. However, even though my code worked, the task wouldn't accept it. So I rewrote it to
    • 4/24/19
    • 6145views
    • 5comments
    0
  • Philip Obiorah
    Level 16
    Port - Harcourt
    Question about the task Changing functionality
    Java Syntax, Level 7, Lesson 12
    Resolved
    Not verifying... Pls what is wrong with this codePlease I can't figure out what is wrong with this code, and why it is not verifying.
    • 2/9/19
    • 2471views
    • 3comments
    0
  • Shaun Forster
    Level 14
    United Kingdom
    Question about the task Print three times
    Java Syntax, Level 2, Lesson 8
    Under discussion
    My solution is apparently correct but am curious.While it says my solution is correct. Is the output supposed to be "window window window file file file" or is it supposed to be "window file window file window file"?
    • 5/13/19
    • 1395views
    • 1comment
    0
  • Mukesh Vudayagiri
    Level 10
    Ferokh
    Question about the task The end
    Java Syntax, Level 7, Lesson 12
    Under discussion
    Why?Why the code is working with .equals() method and why not with == operator. Please explain lengthily or provide some links. Thanks.
    • 9/8/18
    • 1672views
    • 4comments
    0
  • Alex Balandinos
    Level 18
    Lusaka
    Question about the task The end
    Java Syntax, Level 7, Lesson 12
    Under discussion
    Program not displaying and not exiting
    • 3/7/19
    • 1710views
    • 2comments
    0
  • IrnBruKing
    Level 7
    Falls Church
    Under discussion
    Can't use IntellJ on PC/NetworkHello all, I'm using Codegym at work for training, I'm now at the point where the course is asking to me install IntelliJ. However being at work I can't install other programmes, is there an in-browser version or another alternative I can use? Thanks.
    • 5/13/19
    • 1274views
    • 1comment
    0
  • Deepak Chandra
    Level 16
    Visakhapatnam
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    Help pleaseWorks fine in intellij an iam getting the answer correct but last condition is not satisfied.Please help. public class Solution { private static Scanner scanner = new Scanner(System.in); public static void main(String[] args) throws Exception { int N = scanner.nextInt(); int
    • 5/10/19
    • 1997views
    • 8comments
    0
  • Vishwambhar Awagan
    Level 8
    Pune
    Question about the task Shuffled just in time
    Java Syntax, Level 7, Lesson 12
    Under discussion
    Running but still giving error
    • 10/19/18
    • 1924views
    • 6comments
    0
  • Serg
    Level 23
    Tyumen
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Resolved
    Why a mistake?Why does an error occur? package com.codegym.task.task05.task0507; import java.io.BufferedReader; import java.io.InputStreamReader; public class Solution { public static void main(String[] args) throws Exception { int n = 0; int count = 0; double
    • 5/8/19
    • 2177views
    • 7comments
    0
  • Николай
    Level 7
    Mariupol'
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Under discussion
    everything works but the test fails. Why?package com.codegym.task.task06.task0606; import java.io.*; /* Even and odd digits */ public class Solution { public static int even; public static int odd; public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStre
    • 5/10/19
    • 1441views
    • 2comments
    0
  • Godwin
    Level 14
    Sango
    Question about the task Shuffled just in time
    Java Syntax, Level 7, Lesson 12
    Resolved
    shows timeout after validation, why?After spending much time the program runs correctly but shows timeout after validation. no pass, no fail just timeout. How can i resolve this? Thanks
    • 5/12/19
    • 1583views
    • 2comments
    0
  • nickyy
    Level 18
    Diou
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Using loops to solve the triangle problemHi everyone :-) Maybe I have over done it, I have not find a splice function in java... I am not sure why my code fails... It gives the correct answers when I try it. 5, 3, 2 => exists 0 for a side => exists 5, 2, 2 => exists
    • 5/10/19
    • 3526views
    • 2comments
    0
  • hidden #10438825
    Level 4
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Not sure what I am doing wrong.Even just a hint would help. Thanks
    • 5/10/19
    • 2679views
    • 3comments
    0
  • Connor
    Level 8
    Boston
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Under discussion
    I'm unsure about what I'm missing, I'm sure it's pretty simple but I'm BURNT from work this week. It's been REALLY busy this week, but I need to get at LEAST two hours of practice in per day. I know once I get a job doing this it'll be at LEAST 8 hours a day coding. But right now on top of 50 hours a week at a restaurant :'0, and doing 8 hours a day on my two days off and being a dad. I love my
    • 5/11/19
    • 1705views
    • 3comments
    0
  • errorCode
    Level 9
    Makati
    Question about the task Drawing lines
    Java Syntax, Level 4, Lesson 13
    Resolved
    My display is correct, still it does not met the requirements. Why?My display is correct, still it does not met the requirements. Why?
    • 9/14/18
    • 2439views
    • 4comments
    0
  • Don Boody
    Level 8
    Victor
    Question about the task Drawing lines
    Java Syntax, Level 4, Lesson 13
    Under discussion
    IntelliJ BehaviorAnybody running into an issue where you ask the IntelliJ plugin to verify the task you're currently working on, but it verifies the task you had just previously worked on? It happens to me very frequently, regardless of the task or level. Anybody find a way to fix that?
    • 2/16/19
    • 1555views
    • 5comments
    1
  • Sourav Kumar Rana
    Level 9
    Delhi
    Question about the task Notepad for new ideas
    Java Syntax, Level 6, Lesson 11
    Under discussion
    this worked but need improvementpackage com.codegym.task.task06.task0617; /* Notepad for new ideas */ public class Solution { public static class Idea { public String getDescription() { return "sourav"; } } public static void printIdea(Idea idea) { System.out
    • 1/17/19
    • 1815views
    • 6comments
    0
  • Wilder
    Level 4
    Alajuela
    Question about the task Pets need people
    Java Syntax, Level 2, Lesson 5
    Under discussion
    help please, i can't figure out what do to :(public class Solution { public static void main(String[] args) { Cat cat=new Cat(); Dog dog=new Dog(); Fish fish=new Fish(); cat.owner=Woman; dog.owner=Woman; fish.owner=Woman;
    • 3/22/19
    • 1767views
    • 3comments
    0
  • Akash sah
    Level 8
    Kathmandu
    Question about the task Pets need people
    Java Syntax, Level 2, Lesson 5
    Under discussion
    what should i do now?what is wrong with this code?
    • 2/9/19
    • 1399views
    • 3comments
    0
  • Julien
    Level 15
    Paris
    Question about the task Checking the order
    Java Syntax, Level 7, Lesson 9
    Resolved
    Compiled, Tested with manual entries. Work for me but not for CodeGym. Review please ?Hey Guys, Everything look fine with this code, i tried manual entries (like ascendant, descendant sets with violators and some with not). I dont know why i don't pass the test in codegym. Someone here for a code review please ? ArrayList list = new ArrayList<>(); BufferedReader re
    • 5/11/19
    • 1492views
    • 3comments
    0
  • MakinTosH
    Level 20
    Vilnius
    Question about the task CRUD 2
    Java Core, Level 7, Lesson 10
    Resolved
    Is this an error with validation?Ok, I think my code is working perfectly.. Can anyone help me and find why the conditions aren't met?
    • 5/9/19
    • 1912views
    • 7comments
    0
  • 1
  • ...
  • 326
  • 327
  • 328
  • 329
  • 330
  • ...
  • 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