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
  • Deepak Joshi
    Level 17
    Nainital
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Under discussion
    What's wrong with this code?
    • 4/26/19
    • 1554views
    • 6comments
    0
  • Bogdan Codreanu
    Level 23
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Under discussion
    helpwhat am i missing ?
    • 4/29/19
    • 1725views
    • 2comments
    0
  • Karan
    Level 0
    Peshawar
    Question about the task Amigo is very smart
    Java Syntax, Level 0, Lesson 2
    Resolved
    How to write statment?How to write statment ?
    • 5/1/19
    • 1511views
    • 1comment
    0
  • Djole
    Level 41
    Belgrade
    Question about the task Chat (part 20)
    Java Multithreading, Level 6, Lesson 15
    Resolved
    is it bugged?public class ClientGuiModel extends Client{ private final Set allUserNames = new LinkedHashSet<>(); private String newMessage; public Set getAllUserNames() { return Collections.unmodifiableSet(new LinkedHashSet<>(allUserNames)); } public String getNewMessage
    • 4/30/19
    • 1313views
    • 2comments
    0
  • Bogdan Codreanu
    Level 23
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Under discussion
    help????
    • 4/29/19
    • 1612views
    • 2comments
    0
  • krishnaprasanna doddapaneni
    Level 2
    Hyderabad
    Question about the task Square of a number
    Java Syntax, Level 1, Lesson 8
    Archived
    what is wrong in this code ,getting verification error like this(the main should call the sqr method with 5 as an argument).public class Solution { public static void main(String[] args) { sqr(5); System.out.println(sqr(5)); } public static int sqr(int a) { return a * a; } }
    • 1/31/19
    • 2012views
    • 3comments
    0
  • Anonymous #10428383
    Level 12
    Seattle
    Question about the task Flip the array
    Java Syntax, Level 7, Lesson 4
    Under discussion
    what is the trick here? my code works fine on notepad, it's compile here, but ask me to create a int array with 10, reverse, and i did.package com.codegym.task.task07.task0704; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; import java.util.Collections; /* Flip the array */ public class Solution { public static void main(String[] args) throws Exception { //array int 10 ele
    • 4/27/19
    • 1937views
    • 5comments
    0
  • MUHAMMAD SHAHZAIB
    Level 2
    Islamabad
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Resolved
    whats the problem in this code package 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 b = a+1000 ; System.out.println("Your salary is:" + b + "dollars per mont
    • 11/25/18
    • 3089views
    • 9comments
    0
  • Joy Majumdar
    Level 16
    Kolkata
    Question about the task Going national
    Java Syntax, Level 8, Lesson 11
    Archived
    How to Char change
    • 3/28/19
    • 1447views
    • 4comments
    0
  • Connor
    Level 8
    Boston
    Question about the task StringHelper class
    Java Syntax, Level 6, Lesson 8
    Under discussion
    Not working?dunno why. I'm gonna take a break, I'm pretty brainfried at the moment. I've been at this since like 9 a.m. its about 830 p.m. now. I've had a few 20-30 minute breaks. But I think I need another one. Love y'all!
    • 5/1/19
    • 1214views
    • 2comments
    0
  • Connor
    Level 8
    Boston
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Under discussion
    I'm not sure where the error is.I made some changes recently and it seems to be outputting the correct amount of even and odd digits in the correct spots, with the correct output text. But I'm still getting error messages from the validation. EDIT: nvm, it seems that once I get up past 5 digit numbers it starts missing odd numbe
    • 4/30/19
    • 1918views
    • 8comments
    0
  • Mike McKenna
    Level 25
    Wilmington
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    sorry if i ask for help should give max informationint m; if(a>b && a>c) min = a; else if(c>b && c>a) min = c; else if(b>c && b>a) min = b; return min;
    • 4/29/19
    • 1430views
    • 1comment
    0
  • Austin
    Level 6
    Lansing
    Question about the task A name is a name
    Java Syntax, Level 4, Lesson 16
    Resolved
    Is it possible to print multiple lines within one System.out.println(); function?It might look something like this if it were possible: System.out.println("My name is " + name + "." + /n + "I was born on " + xx + "/" + xx + "/" + xxxx); // basically this would be to cut down on using two System.out.println(); functions Basically, this would be to cut down on using two System.o
    • 4/30/19
    • 1541views
    • 1comment
    0
  • Paweł
    Level 15
    Gromnik
    Question about the task Improving functionality
    Java Syntax, Level 5, Lesson 12
    Resolved
    What's wrong!?Help me, it works.
    • 4/9/19
    • 2105views
    • 5comments
    1
  • Igor Alves
    Level 6
    Aveiro
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Resolved
    What do i do?I've tried everything to solve it, but it seems that i'm missing something. Please, help me!
    • 4/29/19
    • 1732views
    • 3comments
    0
  • shajune dev
    Level 2
    Question about the task The great purge
    Java Syntax, Level 1, Lesson 8
    Resolved
    Output should not change?.The output should not change?.
    • 1/21/19
    • 1415views
    • 5comments
    0
  • Serg
    Level 23
    Tyumen
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Why does an error occur?Why does an error occur? If you cant see the triangle with the sides you need to display: "The triangle is not possible." package com.codegym.task.task04.task0415; import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader buf
    • 4/29/19
    • 2048views
    • 4comments
    0
  • Steven Mcilhone
    Level 17
    Belfast
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    still failing last condition any suggestions?still failing last condition any suggestions?
    • 4/25/19
    • 1207views
    • 1comment
    2
  • Vlad Yehorov
    Level 8
    Dnipropetrovsk
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    Could you tell me why my code is not suitable?Could you tell me why my code is not suitable?
    • 4/29/19
    • 1678views
    • 2comments
    0
  • Bogdan Codreanu
    Level 23
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Under discussion
    ??can someone please tell me what's wrong with my code ?
    • 4/29/19
    • 1375views
    • 2comments
    0
  • Jyothi
    Level 20
    Question about the task Fix the bugs
    Java Core, Level 8, Lesson 5
    Resolved
    fixed 2 bugs. what are the other 2?Verify failing. I've fixed 2 bugs out of 4. Please help with the other 2.
    • 1/3/19
    • 2169views
    • 3comments
    0
  • Janusz
    Level 11
    Radomsko
    Question about the task Cat's finalize method
    Java Syntax, Level 6, Lesson 5
    Under discussion
    What is wrong in line: 16, column: 19 ? What is wrong in line: 16, column: 19 ? protected void finalize() throws Throwable;
    • 11/12/18
    • 1681views
    • 3comments
    0
  • manoj deo
    Level 3
    Jakarta
    Question about the task CodeGym. Learn once - use anywhere
    Java Syntax, Level 1, Lesson 4
    Resolved
    Why its not satisfying the last condition public class Solution { public static void main(String[] args) { String s = "CodeGym.Learn once - use anywhere"; System.out.println(s); System.out.println(s); System.out.println(s); System.out.println(s); System.out.println(s); System.out.println(s); System.out.p
    • 8/26/18
    • 2419views
    • 4comments
    0
  • Steven Mcilhone
    Level 17
    Belfast
    Question about the task Calculator
    Java Syntax, Level 6, Lesson 8
    Resolved
    what is it i am doing wrongwhat is it i am doing wrong, tried (b/100)*a and (a/100)*b
    • 4/26/19
    • 3042views
    • 5comments
    0
  • asyraf
    Level 3
    Kuala Lumpur
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Under discussion
    does my code wrongThis question provide the error The hackSalary method should increase the input parameter by 1000 and output text to the screen according to the specified template. please someone explain to me what i did wrong here.
    • 4/28/19
    • 1452views
    • 4comments
    0
  • Anastasia Falcon
    Level 8
    Rio de Janeiro
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Resolved
    I could probably solve this in another way, but why doesn't this solution work?This clearly has some problems but I don't know why. I had a look at the while loops in the lessons where they were explained, but can't see the problem.
    • 4/27/19
    • 1568views
    • 9comments
    0
  • Anastasia Falcon
    Level 8
    Rio de Janeiro
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Resolved
    I will go insane, what is wrong here? Can anyone explain, please?I've tried various different ways, but I just don't understand what's wrong. The program calculates the result incorrectly, but compiles and passes the "if -1 entered the program should terminate correctly" requirement.
    • 4/28/19
    • 1518views
    • 2comments
    0
  • Roy
    Level 22
    Bangkok
    Question about the task Buggy initializeIdAndName
    Java Core, Level 3, Lesson 2
    Resolved
    DBObject object or User object confusionI have managed to solve the task by checking the other users their help questions here. However, i am still stuck on why the code needs to be changed to User and it can't be a reference to the User object through the DBObject interface. interface DBObject { DBObject initializeIdAndName
    • 4/26/19
    • 2158views
    • 7comments
    0
  • Alex Balandinos
    Level 18
    Lusaka
    Question about the task Drawing a rectangle
    Java Syntax, Level 4, Lesson 13
    Resolved
    Hey ,Its printing the 8888 and next line 8888 like in the example output but still checking wrong check correct number row any help will be great.
    • 2/12/19
    • 2622views
    • 1comment
    1
  • thisisalongname
    Level 15
    Spokane
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Regarding the difference in "==" and ".equals"I originally wrote my code with "name1 == name2" as the comparing if condition and it didn't work so had to replace it with ".equals". My question is about why it didn't work. From what I understand, "==" checks the place in memory where it is stored rather than a direct comparison. So it wouldn't w
    • 4/27/19
    • 1585views
    • 3comments
    0
  • 1
  • ...
  • 330
  • 331
  • 332
  • 333
  • 334
  • ...
  • 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