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
  • Christy
    Level 5
    Under discussion
    Help with this codeCan someone help with this and constructively criticize.. I have also included the program I wrote which is very basic but I'm trying to solidify my knowledge on if else statements and loops. I want to write a program that: - takes the user's input - Both integers must be greater than 0. - accepts
    • 18.03.2024
    • 226views
    • 3comments
    0
  • Ailana
    Level 2
    San Carlos
    Question about the task One cat isn't enough
    Java Syntax, Level 2, Lesson 3
    Under discussion
    Help plz as fast as u canit says that I didn't make 2 variables but everything else is correct.this is my code public class Solution { public static void main(String[] args) { Cat kitty = new Cat();
    • 11.08.2020
    • 543views
    • 3comments
    0
  • Rich Piske
    Level 30
    United States of America
    Question about the task Make a word chain
    Java Multithreading, Level 2, Lesson 9
    Under discussion
    I was really happy with my solution. HOW is it wrong?This has been probably the most frustrating chapter yet with validation. I've tested numerous data sets with my algorithm. It tries starting with all words in the list and returns the longest result. It's worked with everything I've thrown at it, even the ones you guys have suggested. I think th
    • 06.03.2024
    • 244views
    • 4comments
    2
  • PQK
    Level 6
    United States of America
    Question about the task Conscription
    Java Syntax, Level 3, Lesson 0
    Resolved
    Is this code acceptable ?I wrote this code for this question and it achieved the desired output stated in the question. But when I verify it, the code was wrong as the last requirement was not met even though the input age (22) is within the specified range. My code also shows that nothing will be displayed if the input age
    • 03.03.2024
    • 405views
    • 3comments
    2
  • Yomi Addey
    Level 8
    Baltimore
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Under discussion
    I'm having trouble passing tasks 3,4,and 7Not sure if it's the way I organized my code or...? But, any help will be greatly appreciated!
    • 19.02.2021
    • 674views
    • 2comments
    0
  • Jack Winning
    Level 6
    Nottingham
    Question about the task Reverse
    Java Syntax, Level 6, Lesson 3
    Under discussion
    Help on if statementI've tried a few ways now, but it seems whatever I put inside the if statement, doesn't get recognised when I try to run it. it either says symbol not found or 'n may not have been initialized '. Any advice please?
    • 27.02.2024
    • 186views
    • 3comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Archiver (part 13)
    Java Multithreading, Level 7, Lesson 15
    Under discussion
    Can you move the copyData line outside of the while loop?I already completed the task, but after that I was looking at the code and I thought it seems really inefficient to be writing the entire ZipInputStream to a dummy copy on every iteration of the while loop. If it's a large archive this could really bog down the process. I was wondering if it would w
    • 24.04.2022
    • 466views
    • 1comment
    0
  • Bashka
    Level 4
    Russia
    Question about the task Maximum of entered numbers
    Java Syntax, Level 4, Lesson 5
    Under discussion
    I need help!))) I can't solve this problem....)
    • 26.02.2024
    • 142views
    • 1comment
    0
  • Niki Niki
    Level 2
    banglore
    Under discussion
    what is the error in this program import java.io.*; public class main{ public static void main(String[] args) throws IOException { FileReader file =new FileReader("C:\\a.txt"); BufferedReader fileInput = new BufferedReader (file); for( int counter=0;counter<3;counter++) System.out.pr
    • 25.02.2024
    • 143views
    • 1comment
    0
  • FelixUjo
    Level 35
    Gijón
    Question about the task Black box
    Java Multithreading, Level 4, Lesson 4
    Under discussion
    I don't know what else to try.I don't know what else to try.
    • 18.02.2024
    • 201views
    • 6comments
    0
  • Jack Winning
    Level 6
    Nottingham
    Question about the task Second smallest number entered
    Java Syntax, Level 4, Lesson 5
    Under discussion
    I seem to be getting the correct output but not passing all the requirements.can any shed some light on this?
    • 24.02.2024
    • 167views
    • 1comment
    0
  • Jack Winning
    Level 6
    Nottingham
    Under discussion
    Why is the while argument !isExit on the correct solution?I can understand the rest of the solution, but I don't understand why the argument for 'while' is !isExit. if boolean isExit = false, then surely !isExit = true and therefore the while loops stops straight away? Can someone clarify for me please?
    • 22.02.2024
    • 162views
    • 1comment
    0
  • Aditya Sinha
    Level 17
    Bangalore
    Question about the task Going national
    Java Syntax, Level 8, Lesson 11
    Resolved
    Failing in last conditionI am checking if last word is going to print ,then don't print extra space,still it is failing.Can someone check
    • 23.01.2019
    • 2535views
    • 11comments
    1
  • solewap
    Level 3
    Poland
    Question about the task Triangle
    Java Syntax, Level 3, Lesson 6
    Under discussion
    Why my ternary bugs out after ":" ?System.out.println( isTriangle ? TRIANGLE_EXISTS : TRIANGLE_DOES_NOT_EXISTS );
    • 18.02.2024
    • 174views
    • 2comments
    0
  • Amantai
    Level 47
    Shymkent
    Question about the task Getting rid of labels
    Java Multithreading, Level 7, Lesson 2
    Resolved
    For your informationThe solution using the contains() method does not pass the verification of points 3 and 4. The contains() method probably uses break and continue statements.
    • 05.10.2023
    • 273views
    • 1comment
    0
  • Andrew
    Level 29
    Seattle
    Question about the task Getting rid of labels
    Java Multithreading, Level 7, Lesson 2
    Resolved
    Brain stuck in boxI can't think of how to preserve the while loop logic without a continue. Hint please!
    • 06.06.2019
    • 1888views
    • 7comments
    0
  • Rajesh Yadav
    Level 17
    Delhi
    Question about the task Summation
    Java Syntax, Level 4, Lesson 0
    Under discussion
    first try yourself if stuck then apply this solution package en.codegym.task.pro.task04.task0403; import java.util.Scanner; /* Summation */ public class Solution { public static void main(String[] args) { //write your code here Scanner sc = new Scanner(System.in); int sum = 0; boolean flag = true; while(f
    • 29.12.2023
    • 300views
    • 1comment
    0
  • Bashka
    Level 4
    Russia
    Question about the task Sum of numbers not divisible by 3
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Help!)Where is my wrong?)
    • 18.02.2024
    • 188views
    • 4comments
    0
  • Jo88
    Level 4
    Boston
    Question about the task Square of a number
    Java Syntax, Level 1, Lesson 8
    Under discussion
    square of numberI do not understand why the system.out.println(sqr(5)); part is so early in the code? why isn't it at the end instead of being in the main method? I am asking be cause the a*a part comes after the print statement..so how is it printing before it gets the answer??? maybe I am looking at this the w
    • 14.01.2020
    • 1146views
    • 4comments
    0
  • ALice
    Level 1
    Fremont
    Under discussion
    alicealice
    • 19.02.2024
    • 149views
    • 0comments
    0
  • Bob
    Level 1
    Under discussion
    bobbob
    • 19.02.2024
    • 132views
    • 0comments
    0
  • Shriyansh Budhori
    Level 6
    CodeGym University in India
    Question about the task Positive and negative numbers
    Java Syntax, Level 3, Lesson 10
    Under discussion
    What is wrong? What is Wrong in this:?
    • 11.02.2024
    • 146views
    • 1comment
    0
  • Ryan
    Level 5
    Srinagar
    Question about the task Quadrants
    Java Syntax, Level 3, Lesson 3
    Under discussion
    I can't clearly understand what it wants me to do. Can anyone help me? It asks me to do something i can't clearly understand..... Please explain what it is saying.
    • 03.11.2022
    • 561views
    • 3comments
    0
  • raj patil
    Level 4
    Question about the task Pets need people
    Java Syntax, Level 2, Lesson 5
    Resolved
    Level 2 lesson 5how to do this task. i am not able to understand how to define the owner
    • 31.07.2018
    • 4956views
    • 18comments
    3
  • FelixUjo
    Level 35
    Gijón
    Question about the task Refactoring Rectangle
    Java Multithreading, Level 4, Lesson 4
    Resolved
    I don't see the problem.I don't see the problem.
    • 17.02.2024
    • 153views
    • 1comment
    0
  • Isma
    Level 41
    Madrid
    Question about the task Eliminating deadlock using open calls
    Java Multithreading, Level 7, Lesson 6
    Under discussion
    Solved it but I don't really know what I've doneSomeone to explain this task?
    • 02.03.2021
    • 834views
    • 3comments
    1
  • Alexandre Desbois
    Level 10
    Chamarandes-Choignes
    Question about the task HashMap of cats
    Java Syntax, Level 8, Lesson 3
    Resolved
    NullPointerExceptionI don't understand why the code doesn't compile due to a NullPointerException. Thanks for your help.
    • 26.12.2021
    • 521views
    • 3comments
    1
  • matemate123
    Level 50
    Kraków
    Question about the task Wildcards
    Java Collections, Level 5, Lesson 8
    Under discussion
    Someone could tell me about difference?I added wildcards: Previously code looks: I understand that here occur relationship producer-consumer or something similar. Wildcard ? with super give me sureness that this List have ancestors and I can safely adding to it. Wildcard ? with extends give me reliability that this list is descendan
    • 11.10.2023
    • 571views
    • 5comments
    0
  • In Ho Kwon
    Level 20
    Question about the task Census
    Java Syntax, Level 14, Lesson 7
    Resolved
    Don´t compileHello, i don´t know why the program does not compile. Help please. Thank you.
    • 12.02.2024
    • 173views
    • 1comment
    0
  • Rich Piske
    Level 30
    United States of America
    Question about the task Introducing tags
    Java Core, Level 9, Lesson 11
    Resolved
    Why won't code gym accept this?Can't figure out why this won't accept. It works with every example I've thrown at it. This is why CodeGym is so frustrating some times. I've created numerous working exercises that for some unknown reason, the verifier has a problem with. But this example below does exactly what it's supposed t
    • 12.02.2024
    • 176views
    • 1comment
    0
  • 1
  • ...
  • 9
  • 10
  • 11
  • 12
  • 13
  • ...
  • 372
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 © 2025 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2025 CodeGym