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
  • Jaime Padilla
    Level 41
    Chandler
    Question about the task Building a file
    Java Core, Level 8, Lesson 11
    Resolved
    I must not understand the task conditionsIt seems to work perfectly when I test it. -Reads file names until the String end is entered. -Creates multiple different names for files and gives each name a different .part number. -Creates the actual files -Then writes each file's bytes/contents to the Main file. It will create the files and a
    • 11/15/22
    • 741views
    • 9comments
    0
  • Anonymous #11161389
    Level 3
    Trollfjord
    Question about the task Conscription
    Java Syntax, Level 3, Lesson 3
    Under discussion
    Have we learned this?why does this task and many others include elements we haven't learned yet. is there some kind of coding logic I haven't understood yet? Speaking particularly of the whole condition and statement commands. like that is two if´s and the high amount of parenthesis that wasn't shown in the example text
    • 11/17/22
    • 480views
    • 1comment
    0
  • Ghulam Sakhi Sahil
    Level 3
    Herat
    Question about the task IT company
    Java Core, Level 1, Lesson 6
    Under discussion
    jDateCoosherHello Everyone I have a problem in my program When I click on any cell in jTable all columns loading in there fields but I dont know how to select Date from jTable in jDateChooser fields. Please help me.
    • 11/16/22
    • 404views
    • 0comments
    0
  • Jaime Padilla
    Level 41
    Chandler
    Question about the task Symbol frequency
    Java Core, Level 8, Lesson 11
    Resolved
    Takes to long to verify and then times-outWhen I use my test.txt file, instead of args[0], it seems to do what the task asks and works perfectly. However, when I replace my file with args[0] it will Time out and not verify. Any help would be appreciated. Thanks!
    • 11/12/22
    • 900views
    • 10comments
    0
  • Jaime Padilla
    Level 41
    Chandler
    Question about the task Encryption
    Java Core, Level 8, Lesson 11
    Resolved
    It works during tests, but won't pass verification.Any idea why it works perfectly when I test it, but won't pass verification?
    • 11/16/22
    • 533views
    • 7comments
    0
  • Alex Tor
    Level 31
    Question about the task URL validation
    Java Syntax, Level 10, Lesson 5
    Resolved
    checkDomainExtension(String) - isn't being validated.Hi guys, The written code gives the following output: URL address: https://javarush.us, network protocol - https, domain extension - us URL address: https://google.com, network protocol - https, domain extension - com URL address: http://wikipedia.org, network protocol - http, domain extension - o
    • 8/10/22
    • 514views
    • 2comments
    0
  • Clark Roberts
    Level 0
    Question about the task Amigo is very smart
    Java Syntax, Level 0, Lesson 2
    Under discussion
    really struggling with the taskis anyone else really struggling? I am unable to complete the task and do not understand what where should be entered.
    • 10/16/19
    • 1365views
    • 2comments
    0
  • Денис Чистяков
    Level 30
    Poland
    Question about the task Prices 2
    Java Core, Level 8, Lesson 11
    Under discussion
    What am i doing wrong? Can't figure it out, please helpWhat am i doing wrong? Can't figure it out, please help
    • 11/13/22
    • 339views
    • 2comments
    0
  • Satya Vath
    Level 31
    Vijayawada
    Question about the task Don't mix beer with cola
    Java Core, Level 3, Lesson 2
    Resolved
    Please Help package com.codegym.task.task13.task1303; /* Don't mix beer with cola */ public class Solution { public static void main(String[] args) throws Exception { print(new Beer()); print(new Cola()); } private static void print(Drink drink) { System.out.println(dri
    • 4/7/19
    • 1361views
    • 4comments
    1
  • Tata
    Level 16
    Hisar, Haryana
    Question about the task Beer. Part 2. The recovery.
    Java Core, Level 3, Lesson 2
    Resolved
    Can we make objects of interface???Of course we can't then what it is :-- Drink beer = new AlcoholicBeer();
    • 7/28/20
    • 588views
    • 6comments
    1
  • Gellert Varga
    Level 23
    Szekesfehervar
    Question about the task The unapproachable cat
    Java Core, Level 1, Lesson 8
    Under discussion
    Private setter method?...Does it have any sense to make a setter method private (in a real program)? Nobody will be able to change that private variables, because of: the private setter method also uncallable. (In this task we had to make the setter method private.)
    • 1/2/21
    • 1015views
    • 4comments
    1
  • Ashish RajAnand
    Level 13
    Bhilai
    Question about the task Don't forget to encapsulate
    Java Core, Level 1, Lesson 8
    Resolved
    How reference will passed? public class Cat{ private String name; public void setName(String name){ this.name=name;//set name by passing current reference of object . } public String getName() return name;//return name or return this.name //which will correct ? } Both will work but I don't understand In return name; how
    • 5/9/20
    • 664views
    • 1comment
    1
  • priyantha s
    Level 8
    Question about the task Unfilled rectangle
    Java Syntax, Level 4, Lesson 3
    Under discussion
    can you give some cluesgive me some clues
    • 11/13/22
    • 844views
    • 2comments
    0
  • hidden #11160211
    Level 6
    Question about the task Reverse
    Java Syntax, Level 5, Lesson 2
    Under discussion
    I'm stuck. I think the logic of my code is wrong. Give me some help! Thank you so much! Scanner console = new Scanner(System.in); int N = console.nextInt(); int[] array = new int[N]; for (int i = 0; i < N; i++) { array[i] = console.nextInt(); if (N > 0) { for (i = N; i >= 0; i--) {
    • 11/14/22
    • 773views
    • 1comment
    0
  • Alex Tor
    Level 31
    Question about the task Buggy initializeIdAndName
    Java Core, Level 3, Lesson 2
    Under discussion
    What's wrong with the overridden method DBObject initializeIdAndName(long id, String name) ? Hi All, According to Judge - two of the four requirements don't seem to have been passed, which is invalid. As you can see, the overridden method both returns a User and initialize the User's fields name and id Any chance of finding out why this code hasn't been validated? Thank you in advance!
    • 11/12/22
    • 641views
    • 1comment
    0
  • hidden #11160211
    Level 6
    Question about the task Summation
    Java Syntax, Level 4, Lesson 0
    Under discussion
    Hello! I can't understand what is wrong with my code! Thanks a lot!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 console = new Scanner(System.in); boolean isExit = false; int sum = 0;
    • 11/3/22
    • 797views
    • 10comments
    0
  • matemate123
    Level 50
    Kraków
    Question about the task Memory defragmentation
    Java Syntax, Level 11, Lesson 6
    Archived
    I need final touchI checked on debugging mode that value array have only 4 object on end method but when program went back on main method, after executeDefragmentation(), still printing full array with null.
    • 11/10/22
    • 545views
    • 7comments
    0
  • Kudi
    Level 2
    New
    App creation How to build an app from scratch
    • 11/11/22
    • 342views
    • 0comments
    0
  • Evilpanda H.
    Level 10
    Under discussion
    declare a variable inside a loop In the below program, the variable "int x" is declared inside the "while" loop. Will the program generate many variables of int x while the loop is executed over and over again? Should I declare the int x outside the loop? like, int x = ""; then in the loop x = console.nextInt(); Scanner console
    • 11/11/22
    • 450views
    • 4comments
    0
  • ImDevin
    Level 15
    Old Town
    Resolved
    IntelliJ questionHi all, When I work on a task in Intellij, I want to run it to what result it produces, before submitting to the checker, but when I click on the "run" button, nothing happens. The window on the bottom(Intellij) only shows this: "C:\Program Files\Java\jdk1.8.0_281\bin\j
    • 4/23/21
    • 800views
    • 8comments
    0
  • heliD
    Level 21
    United Kingdom
    Question about the task Correct order
    Java Syntax, Level 6, Lesson 1
    Under discussion
    Correct answer but doesn't pass? Hiya, My solution runs and prints correct answer to the console but why it doesn't pass?
    • 11/8/22
    • 396views
    • 3comments
    0
  • Anonymous #11121253
    Level 2
    New
    🥲😭want to learn but not understanding. how to use? 🤯 i am confused 😵😐
    • 11/10/22
    • 430views
    • 0comments
    0
  • Franco Paul
    Level 1
    Dar es salaam
    Under discussion
    What is wrong in this code?? package com.codegym.task.task01.task0101; public class Solution { public class void main(String[] args) { System.out.println("I think being a programmer is cool"); } }
    • 11/8/22
    • 362views
    • 1comment
    0
  • Vinay Bansode
    Level 1
    Pune
    Under discussion
    Can I Run Advanced Java's Program Can I Run Advanced Java's Program On this Application
    • 11/8/22
    • 273views
    • 0comments
    0
  • Sourav Kumar Rana
    Level 9
    Delhi
    Question about the task Price of apples
    Java Syntax, Level 4, Lesson 1
    Under discussion
    here is the solution worked for mepackage com.codegym.task.task04.task0402; /* Price of apples */ public class Solution { public static void main(String[] args) { Apple apple = new Apple(); apple.addPrice(50); Apple apple2 = new Apple(); apple2.addPrice(100); System.out.println("The cos
    • 1/14/19
    • 2810views
    • 12comments
    0
  • matemate123
    Level 50
    Kraków
    Question about the task StringTokenizer
    Java Syntax, Level 10, Lesson 6
    Resolved
    What's wrong?I have read that in this exersise may be bug. I don't know what to do, because everything in this program do it's funkction.
    • 11/6/22
    • 365views
    • 2comments
    0
  • Vadim “迪姆哥”
    Level 35
    Question about the task Buy an elephant
    Java Syntax, Level 15, Lesson 3
    Resolved
    My code are identical to correct solution, but validator didnt let it passWHY?
    • 11/1/22
    • 479views
    • 3comments
    0
  • Vadim “迪姆哥”
    Level 35
    Question about the task Filling an array
    Java Syntax, Level 6, Lesson 8
    Under discussion
    code meets requirenment of taskSo, according to Console output, if array size is 20(even), it fills with : [10,10,10,10,10,10,10,10,10,10,13,13,13,13,13,13,13,13,13,13] Then if array size is 21(odd), it fills as [10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,13,13,13,13,13] According to console output, my code met the requirem
    • 10/12/22
    • 701views
    • 10comments
    0
  • GioGTelian
    Level 10
    Question about the task Minimum of N numbers
    Java Syntax, Level 6, Lesson 3
    Resolved
    why it doesnt work?i need to know i spent too much time on this!!
    • 10/26/22
    • 495views
    • 1comment
    2
  • Anonymous #11149234
    Level 6
    United States of America
    Question about the task Comparing strings by reference
    Java Syntax, Level 3, Lesson 9
    Under discussion
    why not equals?why not equals() ? i tried so manny times thinking I was supposed to use equals to compare?? please
    • 10/27/22
    • 499views
    • 2comments
    0
  • 1
  • ...
  • 38
  • 39
  • 40
  • 41
  • 42
  • ...
  • 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