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
  • Lirca Vlad
    Level 11
    Brasov
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Resolved
    pricemy programm is correct but it s appear an error like i didn t increase with 1000 ? where is the problem ? thanks
    • 1/7/20
    • 1304views
    • 2comments
    0
  • krystian
    Level 9
    Kozle
    Question about the task ConsoleReader class
    Java Syntax, Level 6, Lesson 8
    Under discussion
    Any hints here? public class ConsoleReader { public static String readString() throws Exception {
    • 1/12/20
    • 1077views
    • 1comment
    0
  • SOUFIANE DAHIMI
    Level 32
    Marrakech
    Question about the task Counting words
    Java Core, Level 9, Lesson 5
    Under discussion
    Please can someone tell what's wrong with this code ; I think it's correct please help
    • 1/3/20
    • 1174views
    • 2comments
    0
  • Pedzi
    Level 1
    Cape Town
    Question about the task To the top of the list
    Java Syntax, Level 7, Lesson 6
    Under discussion
    Please help, all my elements are being printed on a new line. I don't get why the last condition is failing package com.codegym.task.task07.task0710; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; /* To the top of the list */ public class Solution { public static void main(String[] args) throws Exception { ArrayList list= new ArrayList();
    • 1/12/20
    • 1195views
    • 3comments
    0
  • Facundo Villarroel
    Level 20
    Berlin
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    Requirements should be passing, it is doing what it's supposed to doEven using the web compiler, and the two long words are displayed, the tasks is still not passing. Any ideas? Thanks
    • 10/13/19
    • 1916views
    • 7comments
    0
  • krystian
    Level 9
    Kozle
    Question about the task Distance between two points
    Java Syntax, Level 6, Lesson 8
    Under discussion
    Any hints What to add here? public class Util { public static double getDistance(int x1, int y1, int x2, int y2) {
    • 1/12/20
    • 1070views
    • 1comment
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Bingo!
    Java Core, Level 4, Lesson 2
    Under discussion
    its very easy, but i cant understandcan everybody help me?
    • 6/25/19
    • 1354views
    • 2comments
    0
  • Creepah
    Level 15
    Question about the task Sorting even numbers from a file
    Java Core, Level 3, Lesson 11
    Archived
    Numbers can be negative errorIt says: recommendation from your mentor Bear in mind that numbers can be negative. But when I test it in IntellIJ IDEA with a file, it gives correct output for negative numbers as well. Input used: 1 2 3 4 5 6 -4 -4 7 7 -2 -7 -1 -46 Output given: 2 4 6 -4 -4 -2 -46
    • 11/20/19
    • 1304views
    • 2comments
    1
  • max
    Level 8
    livorno
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Under discussion
    where is the mistake?i'm not able to validate my code as the replay from the system is that the green condition is not met and i don't understand the reason. Here below my code:
    • 1/6/20
    • 1452views
    • 3comments
    0
  • Hendra
    Level 8
    Medan
    Question about the task ConsoleReader class
    Java Syntax, Level 6, Lesson 8
    Under discussion
    help...what wrong with my code,stucked with the last requirementpackage com.codegym.task.task06.task0610; import java.io.BufferedReader;
    • 1/11/20
    • 1196views
    • 5comments
    0
  • Alexander Shtunder
    Level 41
    San Francisco
    Question about the task Counting words
    Java Core, Level 9, Lesson 5
    Resolved
    Who will help me?Checked my code on 10 different files. Everything works fine, but the last condition fails.
    • 8/31/19
    • 1758views
    • 3comments
    0
  • Pippo
    Level 9
    Padova
    Question about the task Maximum in an array
    Java Syntax, Level 7, Lesson 4
    Resolved
    I don't understand why it doesn't accept thisGuys, the output is right, sorry but I can't figure it out where is the mistake.
    • 7/21/19
    • 2043views
    • 3comments
    0
  • Ice_ Beam
    Level 7
    Resolved
    Math equation with % (modulo) clarification helpint k = 50; int a = (k/5) * k + (k/2) % 2; System.out.print(a); // it prints out 501 // say that I calculated (k/5)*k+(k/2) already together which is 525 so int a = 525 % 2; System.out.print(a); // it prints out 1 Why is the first answer different than my second one?
    • 1/11/20
    • 1133views
    • 2comments
    0
  • John Doe
    Level 18
    london
    Question about the task Wine tasting
    Java Core, Level 4, Lesson 8
    Archived
    I really don't know what I miss on this exam can someone help me please ?
    • 1/10/20
    • 1377views
    • 4comments
    0
  • John
    Level 27
    Washington DC
    Question about the task Snake (part 13)
    Java Multithreading, Level 2, Lesson 18
    Under discussion
    This is exasperating...I don't know why this isn't validating. I created a separate test with sample "levels" from 0 - 20 and received correct output for each level.
    • 1/10/20
    • 1282views
    • 1comment
    0
  • Kim Sangwoo
    Level 4
    Singapore
    Question about the task Jen or Jen?
    Java Syntax, Level 4, Lesson 6
    Under discussion
    I dont see anything wrong with my code but keep failing one criterion...My code fails the "If the two strings are identical, dispay " The numbers are identical" " criterion. Help please? public static void main(String[] args) throws Exception { Scanner scan = new Scanner(System.in); String first_name = scan.nextLine(); String second_name = scan
    • 1/4/20
    • 1636views
    • 2comments
    0
  • Jamie
    Level 8
    MERSEYSIDE
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Resolved
    It works out but won't work? I've compared all sides to the sum of the others but it reckons I've not accounted for the impossible triangles.. Please advise!!!
    • 11/25/19
    • 1086views
    • 1comment
    0
  • YO MA
    Level 5
    Mumbai
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 4
    Resolved
    What am i missing? please help!public class Solution { public static void main(String[] args) throws Exception { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); String a = bufferedReader.readLine(); if (a>0) System.out.println(a*2); else if (a<
    • 11/7/19
    • 1879views
    • 6comments
    0
  • Clarendon lee
    Level 8
    Baltimore
    Question about the task Three numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    Not met Output number "2" But verify saying : task no met ? What's my code wrong? Thanks a lot.
    • 10/7/19
    • 1407views
    • 3comments
    0
  • Aleksander
    Level 18
    Katowice
    Question about the task Price of apples
    Java Syntax, Level 4, Lesson 1
    Resolved
    is this solution OK ?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 cost of apples is " + Apple.applePrice); } public static cl
    • 1/7/20
    • 1636views
    • 1comment
    0
  • Ntuthuko Xaba
    Level 18
    Johannesburg
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Under discussion
    I'm getting the correct results but i'm failing the test.Will somebody please explain what is wrong with this code?I'm getting the correct results but i'm failing the test.Will somebody please explain what is wrong with this code?
    • 1/9/20
    • 1380views
    • 2comments
    0
  • Ashok Rai
    Level 3
    Kathmandu
    Question about the task Family relations
    Java Syntax, Level 2, Lesson 2
    Under discussion
    what to do next im having trouble i couldnt understand what to do next?
    • 12/3/18
    • 1554views
    • 3comments
    0
  • Alec Jensen
    Level 5
    Arlington
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    when to use 'else if' statements I feel my code should be close I have tried a ton of different codes to get the minimum but in the end it always prints out C regardless of if it is the max or min. the 'else if ' statement never works and says there is an error because there is and 'else' without an 'if'. Can someone explain to me what that error means?
    • 12/27/19
    • 1528views
    • 11comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Splitting a file
    Java Core, Level 8, Lesson 5
    Resolved
    PLease helpKeep getting the following mentor recommendation: When there is an odd number of bytes in the first file, your program writes the smaller half of the bytes. It should write the larger half. When there is an odd number of bytes in the first file, your program writes the larger half to the third file.
    • 1/8/20
    • 1450views
    • 6comments
    0
  • Diana Pettit
    Level 4
    Mobile
    Question about the task Display right away
    Java Syntax, Level 3, Lesson 3
    Under discussion
    Can someone please help me???It says line line 9 needs an identifier. What am I doing wrong??? Iv'e tried it all kinds of different ways and none of them work.
    • 1/9/20
    • 1342views
    • 1comment
    0
  • RafaƂ Szrajnert
    Level 7
    Poddebice
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Under discussion
    what else?hi, I can not figure this out. maybe some tips, or help?
    • 1/2/20
    • 1180views
    • 2comments
    0
  • Rubaina Farin
    Level 1
    Toronto
    Question about the task Racer (Part 4/28)
    Games, Level 0, Lesson 5
    Under discussion
    Understanding TaskCan someone help me understand what it means when the tasks ask to "In the setCellColor(int, int, Color) method, the base class's method must be called using the super keyword." Where does it go and how do I do it? Thank you in advance!
    • 1/8/20
    • 1308views
    • 1comment
    0
  • TooBiee
    Level 19
    Hannover
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    Please explain me why this code fails Hi Everyone, can anyone help to understand why my code dont pass the test? Thanks TooBiee
    • 12/12/19
    • 1251views
    • 5comments
    0
  • Zhuoliang Pu
    Level 31
    Foster City
    Question about the task Bridges
    Java Core, Level 4, Lesson 8
    Under discussion
    need some help!I don't know why it is not verified...
    • 12/25/19
    • 1139views
    • 2comments
    0
  • Alban
    Level 14
    Kukes
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    Please help ?I can't understand this please help...
    • 1/7/20
    • 1042views
    • 3comments
    0
  • 1
  • ...
  • 242
  • 243
  • 244
  • 245
  • 246
  • ...
  • 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