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
  • Aastha Khanna
    Level 5
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 4
    Archived
    There seems to be an error in line 14. There seems to be an error in line 14.
    • 5/28/19
    • 2144views
    • 8comments
    0
  • Muhammad Faizan Janjua
    Level 6
    Lahore
    Question about the task The Three "Muscateers"
    Java Syntax, Level 5, Lesson 5
    Resolved
    howw public class Solution { public static void main(String[] args) { //write your code here } public static class Cat { Cat cat1=new Cat("ada",21,33,11); Cat cat2=new Cat("sda",21,2,44); Cat cat3=new Cat("sqq",2,3,4);
    • 10/1/18
    • 2404views
    • 5comments
    1
  • Darko Jakimovski
    Level 18
    Kriva Palanka
    Question about the task CRUD 2
    Java Core, Level 7, Lesson 10
    Under discussion
    Can't verify nothingHelp me find what I can't see. After failing I saw other people's code and found them to be quite similar to mine and still mine doesn't pass a single requirement
    • 6/2/19
    • 1552views
    • 1comment
    0
  • Seggzzy
    Level 5
    Lagos
    Question about the task Square of a number
    Java Syntax, Level 1, Lesson 8
    Archived
    Square of a numberWhat does it mean to call a method with an argument
    • 5/3/19
    • 1981views
    • 10comments
    0
  • Anurag R Mishra
    Level 16
    Rasipuram
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Under discussion
    The program ran too long and was closed!Can you optimize this code? I am trying to run it but it shows code took too long to run. Working fine in local machine.
    • 5/29/19
    • 1631views
    • 3comments
    0
  • Omer Yavor
    Level 14
    Tel Aviv
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    I'm not really sure why my code doesn't work...I tried multiple ways but still can't figure it out. I'm trying not to use any arrays because i haven't gotten into those yet. Would appreciate some help!
    • 5/7/19
    • 2149views
    • 13comments
    1
  • JeRiF94
    Level 22
    Baku
    Question about the task Singleton
    Java Core, Level 4, Lesson 8
    Resolved
    SingeltonOnce read a book about patterns , I faced with this one , the implementation of this pattern was the same as in this code , but something is gonna wrong with it, I require to help me correct this.
    • 4/29/19
    • 1776views
    • 2comments
    0
  • Satya Vath
    Level 31
    Vijayawada
    Question about the task Determine the network address
    Java Multithreading, Level 1, Lesson 2
    Under discussion
    Please Help package com.codegym.task.task21.task2101; /* Determine the network address */ public class Solution { public static void main(String[] args) { byte[] ip = new byte[]{(byte) 192, (byte) 168, 1, 2}; byte[] mask = new byte[]{(byte) 255, (byte) 255, (byte) 254, 0}; byte[]
    • 4/23/19
    • 1421views
    • 2comments
    0
  • arun et
    Level 11
    Chennai
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    works fine, output is as expected. but still 1 condition not satisfied; pls help
    • 6/3/19
    • 1330views
    • 2comments
    0
  • Klin Sándor
    Level 10
    Toeroekbalint
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    It's works perfectly, and it's always gives back the maximum, so where is the issue?And do you know what can you do, when you are in the same shoes as i, so you tried your program in many ways, and it's work, it's gives perfectly your waited result, but the task isn't satisfied in some way. It would be better if the task works like this: The program should display the maximum of t
    • 6/2/19
    • 1511views
    • 2comments
    0
  • Fa Yu
    Level 16
    Tashkent
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    It works perfect as per conditions, but won't verify. Help me please to find out the issue.
    • 6/3/19
    • 1510views
    • 4comments
    0
  • Ravien Sewpal
    Level 9
    Paramaribo
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Under discussion
    What's wrong? It keeps displaying 8 and 7...package com.codegym.task.task04.task0409; /* Closest to 10 */ public class Solution { public static void main(String[] args) { displayClosestToTen(8, 11); displayClosestToTen(7, 14); } public static void displayClosestToTen(int a, int b) { // write your code
    • 6/2/19
    • 1291views
    • 3comments
    0
  • Pioniio
    Level 22
    Schaffhausen
    Question about the task Creating threads recursively
    Java Core, Level 6, Lesson 13
    Resolved
    main thread displays hi, in the output there is also the main thread displayed, i can't get rid of it. could somebody help please, thanks
    • 6/3/19
    • 2064views
    • 4comments
    0
  • Ravien Sewpal
    Level 9
    Paramaribo
    Question about the task Three numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    Please help :(package com.codegym.task.task04.task0424; /* Three numbers */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    • 6/2/19
    • 1853views
    • 2comments
    0
  • satish
    Level 15
    kadapa
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Under discussion
    how to stop adding map when reading strings are emptywhats the problem
    • 6/3/19
    • 1540views
    • 1comment
    0
  • Márk Pernesz
    Level 2
    Szeged
    Question about the task Our first converter!
    Java Syntax, Level 2, Lesson 2
    Resolved
    What is wrong with my code? :/Hi guys, please check my code and help me cus I'm totally helpless. The result is correct, everything seems like OK but the Mentor still gives this mesage: "When converting degrees, use the factor 9/5. To get the correct result, use doubles (not ints) to calculate this fraction. The conversion can
    • 6/3/19
    • 1386views
    • 1comment
    0
  • Satya Vath
    Level 31
    Vijayawada
    Question about the task Rarest bytes
    Java Core, Level 8, Lesson 3
    Under discussion
    Please Help
    • 4/17/19
    • 1851views
    • 2comments
    0
  • Sergei Polakov
    Level 11
    Donets'k
    Question about the task Exceptions. Just exceptions.
    Java Syntax, Level 9, Lesson 8
    Under discussion
    not workingnot working
    • 5/31/19
    • 1663views
    • 2comments
    0
  • Yash
    Level 15
    Sugar Hill
    Question about the task Move one static modifier
    Java Syntax, Level 7, Lesson 12
    Under discussion
    Where is it reading from keyboard.???But its not...
    • 6/2/19
    • 1337views
    • 1comment
    0
  • hidden #10444738
    Level 16
    Question about the task Initializing cats
    Java Syntax, Level 5, Lesson 7
    Under discussion
    All answers derived from the first.How can the third one work and the others not, they are derived from the first. I dont understand.
    • 5/20/19
    • 2246views
    • 2comments
    1
  • Mike McKenna
    Level 25
    Wilmington
    Question about the task Multiplication table
    Java Syntax, Level 3, Lesson 6
    Under discussion
    vertical vs hrizontalHi, i was able to get code producing multiplication tables . only the table is vertical instead of horizontal Thanks Mike McKenna
    • 5/31/19
    • 1156views
    • 1comment
    0
  • Harinath Reddy A
    Level 7
    Delhi
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    i dont get it wats wrong in my code please someone help mepackage com.codegym.task.task02.task0217; /* Minimum of four numbers */ public class Solution { public static int min(int a, int b, int c, int d) { //write your code here int m1; if(c
    • 2/9/19
    • 2353views
    • 10comments
    0
  • Kyle Walters
    Level 6
    Rochester
    Question about the task Maximum of four numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    Pure insanity - code works with IntelliJ IDEA 100% as directed but 0 criteria met on CodeGymI can't even get the criteria met for it to read the numbers from the keyboard, but somehow as if by magic, it works and meets 100% of the criteria when tested with IntelliJ IDEA. I've spent the last hour rewriting the code and it never seems to make a difference. After close to an hour I even tri
    • 6/2/19
    • 1585views
    • 2comments
    0
  • hidden #10451198
    Level 14
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Under discussion
    Everything working correctly in JVM but not in CodeGymI have this recommendation : "If an empty string is entered after a number, then that number should also be displayed (it must not be lost)." but when I'm testing this code on JVM everything working. When I write 1 a 2 3 c then I have 1 a 2 3 c.
    • 6/2/19
    • 1185views
    • 1comment
    0
  • Vadym Opalenyk
    Level 10
    Vyshneve
    Question about the task Duplicating words
    Java Syntax, Level 7, Lesson 9
    Under discussion
    What is the problemWhat is the problem
    • 6/2/19
    • 1164views
    • 2comments
    0
  • Nahid Ahmed
    Level 9
    Dubai
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 4
    Archived
    whats wrong herewhy is it showing no element exception for line 13?
    • 6/1/19
    • 1162views
    • 2comments
    0
  • // Java Poser
    Level 18
    Cincinnati
    Question about the task Triangle of eights
    Java Syntax, Level 4, Lesson 13
    Resolved
    Triangle errorI keep getting an error thrown at me saying that the height of my triangle is not 10 lines. can someone help me fix my code?
    • 2/10/19
    • 2117views
    • 3comments
    0
  • ProgrammerNewbie
    Level 14
    Question about the task Drawing a rectangle
    Java Syntax, Level 4, Lesson 13
    Resolved
    Verification fails although program runs seemingly without problems.Hi there. I am kind of stuck here. When I run my program, it works fine and I do not see any difference compared to the example output. I have tried several cases and several numbers and it works fine. However, when I try to verify the task, the third condition fails. I do not know why. I would be
    • 5/18/19
    • 2384views
    • 7comments
    0
  • Mom Meme
    Level 19
    Boston
    Question about the task Exception when working with Map collections
    Java Syntax, Level 9, Lesson 6
    Under discussion
    CodeGym broke...Just take a gander at the 3rd requirement.
    • 2/2/19
    • 1560views
    • 4comments
    0
  • satish
    Level 15
    kadapa
    Question about the task Exception while working with strings
    Java Syntax, Level 9, Lesson 6
    Resolved
    whats the problemwhich exception method is used for error of strings. and how to know which exception method is better
    • 5/31/19
    • 1705views
    • 2comments
    0
  • 1
  • ...
  • 316
  • 317
  • 318
  • 319
  • 320
  • ...
  • 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