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
  • Павел Артеменко
    Level 41
    Krasnodar
    Question about the task Contextual advertising
    Java Core, Level 9, Lesson 11
    Resolved
    Am I missed something?All works as per description, but verifying failed on last 2 conditions.
    • 4/28/19
    • 1373views
    • 2comments
    1
  • Luyi
    Level 31
    Kosice
    Question about the task Inheriting an inner class
    Java Multithreading, Level 4, Lesson 4
    Under discussion
    what is the popper way?Hi what is the proper way of achieving the task: "The BigHall class must be a descendant of the Building.Hall class." I have done it this way: public class BigHall extends Building.Hall { public BigHall(Building b){ b.super(null); } But I am not sure to be honest
    • 10/28/19
    • 1500views
    • 2comments
    0
  • Jesús de Llera
    Level 23
    Badajoz
    Question about the task Following a pattern
    Java Core, Level 6, Lesson 13
    Resolved
    The program displayed too much data on the console (on the screen)???Last condition not verified. Don't know why. Neither do I know why the validator is complaining about too much data on screen....
    • 6/14/19
    • 1975views
    • 2comments
    1
  • Cristian
    Level 16
    Bucharest
    Question about the task Static cats
    Java Syntax, Level 6, Lesson 11
    Archived
    I have one compile error. Please, help me!package com.codegym.task.task06.task0614; import java.util.ArrayList; /* Static cats */ public class Cat { //write your code here public static ArrayList cats = new ArrayList<>(); public Cat() { } public static void main(String[] args) { for (int i = 0; i <
    • 10/28/19
    • 1242views
    • 3comments
    0
  • Season10
    Level 14
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 7
    Resolved
    Note that 0 is not a positive or negative number.Can someone help me? I try but I don't know why
    • 10/28/19
    • 1674views
    • 2comments
    0
  • Robert Constantinescu
    Level 1
    Bucharest
    Question about the task Five winners
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Am i missing something?The algorithm looks like it's sorting the array in descending order. But for some reason, even though the displayed numbers are the biggest five. It fails testing? Is the algorithm wrong? or maybe something else? Kindly let me have your answers. Thank you
    • 10/27/19
    • 1284views
    • 3comments
    0
  • Leontin Vasii
    Level 6
    Iasi
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    Hy....I am stuck here...!!!Help me pls with some hint's.....
    • 10/28/19
    • 1374views
    • 1comment
    0
  • Madhu
    Level 9
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Under discussion
    Last two conditions are not getting....can anyone help me??.........
    • 8/11/19
    • 1219views
    • 1comment
    0
  • Зоран Јањић
    Level 8
    Teslic
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Under discussion
    Any help please?Cant figure out the rest .
    • 10/25/19
    • 1250views
    • 1comment
    0
  • Juanf
    Level 2
    Question about the task Long words
    Java Core, Level 9, Lesson 11
    Resolved
    So..., why Mentor tells me: "Be sure that the program writes to the second file all the words from the first file longer than 6 characters, separated by commas."??I've checked and tested, and for me works. I've included code so I event respect carriages returns (first attempts were without this), and I don't finish with "," in any of the lines, nor at the end of the file. So..., why it doesn't verify and that's the "recommendation"? Can anyone help, please?
    • 10/27/19
    • 1351views
    • 2comments
    0
  • Patrick freeman
    Level 14
    Buffalo
    Question about the task Remove and insert
    Java Syntax, Level 7, Lesson 6
    Under discussion
    What is wrongI'm not sure where I am going wrong, in IntelliJ, I keep getting an out of bounds exception, but I don't think I'm doing anything to or calling index 5(the 6th string in the index), so I'm not sure where this is wrong. Thanks for the help in advance!
    • 10/20/19
    • 1263views
    • 3comments
    0
  • Patrick freeman
    Level 14
    Buffalo
    Question about the task Expressing ourselves more concisely
    Java Syntax, Level 7, Lesson 6
    Archived
    Why wont this pass?If i run my program in IntelliJ, my input and output looks like this: INPUT: a a as asfd asd OUTPUT: a a The program reads 5 strings from keyboard, finds the shortest string, displays it, and displays multiples if more than one are the shortest. Yet, none of the conditions pass. The previous task
    • 10/20/19
    • 1441views
    • 3comments
    0
  • RO8SA1T
    Level 2
    Pune
    Question about the task The required number
    Java Syntax, Level 2, Lesson 5
    Resolved
    please help me i am not getting the meaning of Comment out as many lines as possible to display the number 19 please help me
    • 8/21/18
    • 1742views
    • 9comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Display numbers in reverse order
    Java Syntax, Level 7, Lesson 12
    Resolved
    Why is this not validating?I can't see the problem
    • 10/26/19
    • 1284views
    • 3comments
    0
  • ashgolan
    Level 8
    Ashdod
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Resolved
    hi . i have a correct output but i dont find the problem ? can anybody help please ?
    • 10/27/19
    • 1137views
    • 1comment
    0
  • Clarendon lee
    Level 8
    Baltimore
    Question about the task Creating cats
    Java Syntax, Level 5, Lesson 9
    Resolved
    Construction What's my code wrong? Verify said "Be sure that the constructor initializes the required variables to the correct values. Be sure that the constructor initializes the required variables to the correct values. Be sure that the constructor initializes the require
    • 10/26/19
    • 1539views
    • 1comment
    0
  • Зоран Јањић
    Level 8
    Teslic
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Under discussion
    Any help here please ? public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String grandfatherName = reader.readLine(); Cat Grandfather = new Cat(grandfatherName); Str
    • 10/25/19
    • 1345views
    • 3comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Checking the order
    Java Syntax, Level 7, Lesson 9
    Resolved
    Please helpI can't find the problem. Please help Thanks
    • 10/26/19
    • 1177views
    • 2comments
    0
  • Patryk Vrezer
    Level 3
    Gdansk
    Under discussion
    No TaskHello i installed plugin in my Inteliij but I dont have my task I have only on lvl 0,1 but i have lvl 3 do you have idea?
    • 10/26/19
    • 1162views
    • 1comment
    0
  • Зоран Јањић
    Level 8
    Teslic
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    Any advice please. import java.io.*; /* Task about algorithms */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int maximum =0 ; int N = Integer.parseInt(reader.readLine())
    • 10/25/19
    • 1109views
    • 2comments
    0
  • Kent Hervey
    Level 19
    Question about the task Feng Shui and statics
    Java Syntax, Level 6, Lesson 11
    Under discussion
    Please explain why it worksI got verification/passed using the below, but why? How? I just guessed. And what does this do? A=15; public class Solution { public static int A = 5; public int B = 2; public int C = A * B; public static void main(String[] args) { A = 15; } }
    • 10/25/19
    • 1577views
    • 4comments
    0
  • Szymon
    Level 18
    Lublin
    Question about the task Array of string lists
    Java Syntax, Level 10, Lesson 11
    Under discussion
    failed conditionHi, I have a problem with this task. My solution is attached. The failed condition is: "The createList method must declare and initialize an array with ArrayList elements." but according to oracle documentation -> "You cannot create arrays of parameterized types.". What am i missing here?
    • 10/12/18
    • 1989views
    • 3comments
    0
  • Kent Hervey
    Level 19
    Question about the task Labels and numbers
    Java Syntax, Level 4, Lesson 7
    Resolved
    %2==1 does not test for odd numbers properly for negative numbersIt seems %2==1 does not test for odd numbers properly for negative numbers? Why The below does not work for negative numbers such as -9: if(enteredNumber%2==1){ System.out.println("is odd"); }
    • 10/14/19
    • 1197views
    • 2comments
    0
  • kareandr
    Level 35
    Podol'sk
    Question about the task Word search
    Java Core, Level 10, Lesson 10
    Under discussion
    Recursive problemsHello everyone! Ive tried to solve this with recursion but it fails with message "The list returned by detectAllWords is not the right size!". System.out.println(words.length) prints 2. System.out.println(wordsList.size()) prints 2, same size. System.out.println(wordsList) prints [home - (5, 3) - (
    • 7/8/19
    • 1442views
    • 1comment
    0
  • Patrick freeman
    Level 14
    Buffalo
    Question about the task To the top of the list
    Java Syntax, Level 7, Lesson 6
    Resolved
    Trying to understand this part of a for loopOk, so, to pass this task, I had to make the final for loop condition what is shown below, and this allowed me to println my entered array in reverse order of what was typed, but I don't really understand what is shown inside the parenthesis. I would think what I am doing here is Declaring a new Str
    • 10/20/19
    • 1353views
    • 2comments
    0
  • Krunoslav Krainović
    Level 16
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Resolved
    Seems it works but wont acceptSeems it works but wont accept
    • 10/25/19
    • 1207views
    • 3comments
    0
  • Luis Rodriguez Ugarte
    Level 22
    Chatillon-sur-Chalaronne
    Question about the task Words with numbers
    Java Core, Level 9, Lesson 11
    Under discussion
    I do not know why does not validated"Be sure that the program writes all the words containing numbers from the first file to the second file." I have try out to different test but it's working on perfectly good, any ideas please?
    • 10/25/19
    • 1270views
    • 2comments
    0
  • Петр Зинченко
    Level 19
    Kharkiv
    Question about the task Splitting a file
    Java Core, Level 8, Lesson 5
    Under discussion
    What wrong?? 3&4 failedHelp please, i checked, it is work but don't pass
    • 10/24/19
    • 1265views
    • 4comments
    0
  • Kent Hervey
    Level 19
    Question about the task ConsoleReader class
    Java Syntax, Level 6, Lesson 8
    Under discussion
    b percent of the number a ??what does this mean: b percent of the number a I would think if b is 10 and a is 40, then the result should be 25 as in 25% But?
    • 10/25/19
    • 1367views
    • 1comment
    0
  • 赟 高
    Level 16
    Jinan
    Question about the task Brain training
    Java Core, Level 5, Lesson 12
    Under discussion
    An error occurred during verificationThis is my code.Is anything wrong? public class Solution { public static void main(String[] args) { Duck duck = new Duck(); Util.fly(duck); Util.move(duck); } public static class Duck implements CanFly, CanMove { @Override public void doAction()
    • 10/13/19
    • 1272views
    • 2comments
    0
  • 1
  • ...
  • 267
  • 268
  • 269
  • 270
  • 271
  • ...
  • 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