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
  • Anonymous #11149819
    Level 36
    Poland
    Question about the task Password generator
    Java Collections, Level 2, Lesson 6
    Under discussion
    What is wrong?1. I made List readyPasswords class variable and got this. 2. readyPasswords was methods variable before. But I had this when validated My code seems to work well, but it doesn't pass validation
    • 25.08.2023
    • 173views
    • 1comment
    0
  • Anonymous #11387724
    Level 1
    Richardson
    Under discussion
    What input was given to the following code snippet to output 8? Scanner s = new Scanner(System.in); int times; times = s.nextInt(); //brings in an int from commandline times = times < 0 ? -times : times; int notes = times++; if
    • 27.08.2023
    • 205views
    • 1comment
    0
  • matemate123
    Level 50
    Kraków
    Question about the task Build a tree (part 4)
    Java Collections, Level 1, Lesson 15
    Resolved
    I need a hintOk my code looks like that. I don't know exactly what Validator want from me. I don't know whether I can use linkedLists / arrayLists ? // line 13 For start I implemented add() size() and getParrent() method and I get 3 red from validator, then I implemented remove() because I thought maybe I must d
    • 24.08.2023
    • 433views
    • 9comments
    0
  • Harshit Garg
    Level 23
    Chandigarh
    Resolved
    Why doesnt this work? pls see package Application; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class Application1 extends JFrame implements ActionListener { JButton b1; Application1(){ setSize(700,600); setLayout(new FlowLayou
    • 26.08.2023
    • 405views
    • 5comments
    0
  • prasanth
    Level 8
    Fort Collins
    Question about the task Create a Dog class
    Java Syntax, Level 5, Lesson 7
    Under discussion
    Need help with thispackage com.codegym.task.task05.task0511; /* Create a Dog class */ public class Dog { String name = "Puppy"; int height = 6; String color = "green"; public void Initialize(String name) { this.name = name; } public void Initialize(String name,int height) { this.name = name;
    • 08.01.2019
    • 2143views
    • 6comments
    0
  • Harshit Garg
    Level 23
    Chandigarh
    Resolved
    bitwiseshouldn't 0b11110001>>4 = 0b11111111 OR 0bf1>>4 = 0bff? calculator shows: 0b0f or 0b00001111
    • 21.08.2023
    • 186views
    • 3comments
    0
  • Daniel Njuguna
    Level 14
    Kiambu
    Question about the task Whales, the descendants of cows
    Java Core, Level 2, Lesson 2
    Under discussion
    What's wrong here?package com.codegym.task.task12.task1202; /* Whales, the descendants of cows */ public class Solution { public static void main(String[] args) { Cow cow = new Whale(); System.out.println(cow.getName()); } public static class Cow { public String getName() {
    • 06.02.2019
    • 1581views
    • 4comments
    1
  • Lex Icon
    Level 17
    Sofia
    Question about the task The isomorphs are coming
    Java Core, Level 2, Lesson 12
    Resolved
    I need a help.In fact, this code has the following output: The minimum is -8 The index of the minimum element is 5 Wherein have I done a mistake? TY
    • 20.01.2021
    • 467views
    • 2comments
    1
  • matemate123
    Level 50
    Kraków
    Question about the task Adding a file to an archive
    Java Collections, Level 1, Lesson 6
    Resolved
    My program did everythink but still all red!...My program copy zipFile to temp directory. // 33 If "new" folder is in upmost tree, checking whether that folder have file with the same name like fileToCopy, and change the file. // 73 (maybe I don't understand task correctly but I see in exaple of result that tree looks like: upmostTree/new/file
    • 21.08.2023
    • 200views
    • 2comments
    2
  • Anonymous #10887977
    Level 14
    Chicago
    Question about the task Good or bad?
    Java Syntax, Level 3, Lesson 7
    Under discussion
    It appears I match all the criteria, can anybody spare a hint?I've met all the criteria. If a < 5, displays less than 5. Else displays number is greater than 5. Instructions say nothing about whether or not number is actually 5, as is the case with the third call of the compare method. I can fix this with an "else if" but I'm not specifically asked to.
    • 06.12.2021
    • 900views
    • 5comments
    0
  • FelixUjo
    Level 35
    Gijón
    Question about the task Task about algorithms
    Java Syntax, Level 16, Lesson 4
    Under discussion
    I don't know what else to doI don't know what else to do
    • 20.08.2023
    • 190views
    • 1comment
    0
  • Garagastone21
    Level 1
    Under discussion
    void cocktailSort(int a[]) { boolean swapped = true; int start = 0; int end = a.length; while (swapped == true) { swapped = false; for (int i = start; i < end - 1; ++i) { if (a[i] > a[i + 1]) { int temp = a[i]; a[i] void cocktailSort(int a[]) { boolean swapped = true; int start = 0; int end = a.length; while (swapped == true) { swapped = false; for (int i = start; i < end - 1; ++i) { if (a[i] > a[i + 1]) { int temp = a[i]; a[i]
    • 20.08.2023
    • 162views
    • 0comments
    0
  • Harshit Garg
    Level 23
    Chandigarh
    Question about the task Path update
    Java Syntax, Level 10, Lesson 5
    Resolved
    Where is the error?pls reply
    • 16.08.2023
    • 225views
    • 2comments
    0
  • Harshit Garg
    Level 23
    Chandigarh
    Under discussion
    Did not understan Lev 11 lesson 5 , pls help class Person extends Object { String name; int age; public boolean equals(Object obj) { return this == obj; } public int hashCode() { return address_of_object_in_memory; // This is the default implementation, but there may be a different implementation } } wh
    • 20.08.2023
    • 189views
    • 1comment
    0
  • FelixUjo
    Level 35
    Gijón
    Question about the task Task about algorithms
    Java Syntax, Level 16, Lesson 4
    Under discussion
    I don't understand why it throws nullpointerexceptionI don't understand why it throws nullpointerexception
    • 19.08.2023
    • 175views
    • 1comment
    0
  • Anonymous #11365854
    Level 15
    Question about the task Snake (Part 5/20)
    Games, Level 0, Lesson 1
    Resolved
    Wieso werden Fehler angezeigt?Ich haben alles gemacht lt. Anweisung, trotzdem komme ich nicht weiter. - The Snake class must have a private List snakeParts field that is initialized with a new ArrayList<> when it is declared Ich habe in der Snake-Classe das List Feld zugefügt. Habe es sogar auf ArrayList bzw. private Arra
    • 18.08.2023
    • 478views
    • 6comments
    0
  • Anonymous #11362549
    Level 6
    United States of America
    Question about the task Multiplication table
    Java Syntax, Level 6, Lesson 5
    Under discussion
    Why does it think that the array doesn't have the values of the multiplication table even though i use the array to print the multiplication table? How do i fix this?Why does it think that the array doesn't have the values of the multiplication table even though i use the array to print the multiplication table? How do i fix this?
    • 09.08.2023
    • 221views
    • 3comments
    0
  • Nitin Saini
    Level 4
    Question about the task Broken keyboard
    Java Syntax, Level 3, Lesson 9
    Under discussion
    anybody here please help help
    • 25.03.2023
    • 323views
    • 3comments
    0
  • Uzoechi Juliet
    Level 2
    Question about the task Amigo is very smart
    Java Syntax, Level 1, Lesson 1
    Resolved
    Amigo is very smartplease help, finding it difficult to code it
    • 28.02.2023
    • 501views
    • 2comments
    0
  • Patricial Morg
    Level 1
    Question about the task Encryption
    Java Core, Level 8, Lesson 11
    Under discussion
    do you know how i got my lost funds back?Reach out to mr Jeff he had helped me a lot when it comes to trading as I ran into a lot of lost with different brokers. I lost more than £23,400 to two different brokers but I got all my lost fund recovered with the help of Mr Jeff Silbert and with his assistant and guidance I have been able to ma
    • 29.04.2023
    • 336views
    • 2comments
    1
  • Jeanine Kimball
    Level 26
    New London
    Question about the task Arkanoid (part 10)
    Java Multithreading, Level 3, Lesson 13
    Under discussion
    What am I doing wrong with the last requirement?I tried running it and it doesn't do anything yet so I can't tell if it's supposed to do that at this stage or not. Help?
    • 10.09.2020
    • 612views
    • 4comments
    0
  • Harshit Garg
    Level 23
    Chandigarh
    Under discussion
    Bitwise queries the lesson(9 - 5,6) was a bit unclear... how "Shifting one digit to the right has the same effect as dividing a number by 2." is done by shifts. (did not understand..) what do the operators/functions return if the lengths of the binary are unequal? what is exactly happening in 1<<20 h
    • 14.08.2023
    • 185views
    • 2comments
    0
  • JareBear93
    Level 4
    Question about the task Price of apples
    Java Syntax, Level 3, Lesson 4
    Resolved
    Would someone be willing to explain what I'm missing? As far as I can tell, I'm either out of my mind, or this is fishy. My program displays text on the screen. ✅ The addPrice method does NOT display text on the screen. ✅ The applePrice variable is static and initialized to zero. ✅ addPrice is only being called twice. ✅ The cost increases the cost of
    • 16.08.2023
    • 263views
    • 2comments
    0
  • Andre M.
    Level 4
    Glenn Dale
    Question about the task Price of apples
    Java Syntax, Level 3, Lesson 4
    Under discussion
    First passed-in value ignored...I know that the main class is passing-in values. The first value passed in, 50, was canceled out and replaced with 100. How do I keep the 50 value?
    • 17.12.2021
    • 1213views
    • 3comments
    0
  • FelixUjo
    Level 35
    Gijón
    Question about the task There are a lot of resources
    Java Syntax, Level 16, Lesson 3
    Resolved
    Something is missing and I must have an old version of Java.Something is missing and I must have an old version of Java.
    • 15.08.2023
    • 183views
    • 2comments
    0
  • Hansha
    Level 7
    Question about the task Triangle
    Java Syntax, Level 3, Lesson 3
    Under discussion
    Error when verifyingWhen I press verifiy it just says UNKNOWN-ERROR. Help package en.codegym.task.pro.task03.task0306; import java.util.Scanner; /* Triangle */ public class Solution { private static final String TRIANGLE_EXISTS = "It's a triangle"; private static final String TRIANGLE_DOES_NOT_EXIST = "I
    • 11.06.2023
    • 492views
    • 3comments
    0
  • FelixUjo
    Level 35
    Gijón
    Question about the task Exception when working with numbers
    Java Syntax, Level 15, Lesson 6
    Under discussion
    I don't know what they want me to do.I don't know what they want me to do.
    • 12.08.2023
    • 181views
    • 1comment
    0
  • FelixUjo
    Level 35
    Gijón
    Question about the task Catching checked exceptions
    Java Syntax, Level 15, Lesson 8
    Resolved
    I think I have tried all the optionsI think I have tried all the options.
    • 13.08.2023
    • 300views
    • 2comments
    0
  • Harshit Garg
    Level 23
    Chandigarh
    New
    bitwise shiftwhy are there 2 zeros in left rather than just one? pls tell. 0b00000011 << 20 0b001100000000000000000000
    • 13.08.2023
    • 161views
    • 0comments
    0
  • Павел Артеменко
    Level 41
    Krasnodar
    Question about the task 2048 (part 6)
    Java Multithreading, Level 10, Lesson 15
    Resolved
    Bugged?Consolidate and Merge - it's movement to the left, if on any row they succeeded, then there was a movement and we need to add new tile. Or am I wrong somewhere?
    • 28.05.2019
    • 1615views
    • 4comments
    0
  • 1
  • ...
  • 18
  • 19
  • 20
  • 21
  • 22
  • ...
  • 371
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