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
  • Thomas
    Level 13
    Scottsdale
    Question about the task Come on, lucky seven!
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Ideas ?? Lucky 7 7 7 output is quirky between 50 && 100 --- I am Stuck ! if(a > 50 && a < 100){ System.out.println("The number "+ a +" is not in the interval."); } else System.out.println("The number "+ a +" is in the interval.");
    • 24.05.2019
    • 1581views
    • 3comments
    1
  • Johnson Jose
    Level 10
    Edinburgh
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Under discussion
    Last condition failingIs something wrong with my logic? Please help.
    • 24.05.2019
    • 1232views
    • 2comments
    0
  • romeo
    Level 5
    Paramaribo
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    Can someone please explain why this worked? How can m1 = m2, if m1= min(c, d) and m2 = min(a, b)? obviously they are not equal to each other... I'm very lost. public static int min(int a, int b, int c, int d) { //write your code here int m1 = 0; int m2 = min(a, b); if (c < d) m1 = c
    • 22.05.2019
    • 2188views
    • 7comments
    0
  • Azja
    Level 32
    Krakow
    Question about the task Your own enum
    Java Multithreading, Level 5, Lesson 2
    Resolved
    What is wrong?It gives same output
    • 24.05.2019
    • 1326views
    • 1comment
    0
  • satish
    Level 15
    kadapa
    Question about the task Streets and houses
    Java Syntax, Level 7, Lesson 4
    Archived
    what is the errorheip in finding error
    • 24.05.2019
    • 1272views
    • 1comment
    0
  • Roman
    Level 8
    Minsk
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Resolved
    What's wrong here ?Program ran fine and checked with different inputs but task is failing verification
    • 02.05.2019
    • 1726views
    • 3comments
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task Flip the array
    Java Syntax, Level 7, Lesson 4
    Under discussion
    what is wrong hereneed hint
    • 08.01.2019
    • 1590views
    • 2comments
    0
  • Ferd
    Level 4
    Dresden
    Question about the task Come on, lucky seven!
    Java Syntax, Level 4, Lesson 4
    Under discussion
    What is wrongWhat is wrong in my code?
    • 08.05.2019
    • 1760views
    • 8comments
    0
  • Dona
    Level 7
    Question about the task Come on, lucky seven!
    Java Syntax, Level 4, Lesson 4
    Resolved
    error last condition how can i do this?
    • 21.05.2019
    • 1393views
    • 3comments
    0
  • satish
    Level 15
    kadapa
    Question about the task Calling a constructor from a constructor
    Java Syntax, Level 5, Lesson 9
    Under discussion
    how to call a constructor within a constructoriam not understnading how to solve this
    • 22.05.2019
    • 1670views
    • 3comments
    0
  • Nithin
    Level 35
    Hyderabad
    Question about the task One large array and two small ones
    Java Syntax, Level 7, Lesson 4
    Resolved
    what is wrong with this code this is not passing the 3rd condition package com.codegym.task.task07.task0705; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; import java.util.Arrays; /* One large array and two small ones */ public class Solution { public static void main(Stri
    • 23.05.2019
    • 1781views
    • 2comments
    0
  • Aniket Dwivedi
    Level 8
    Delhi
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Under discussion
    last condition unsatisfiedit says make sure that your code works for numbers that are equally distant to 10. although it works on my pc.
    • 28.11.2018
    • 1790views
    • 4comments
    2
  • Nastya
    Level 12
    Belgorod
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    What's wrong?It works, but does not pass verify
    • 23.05.2019
    • 1361views
    • 3comments
    0
  • JeRiF94
    Level 22
    Baku
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Resolved
    I think so long and I give upThis my code:
    • 12.04.2019
    • 1458views
    • 7comments
    0
  • Satya Vath
    Level 31
    Vijayawada
    Question about the task UnsupportedFileName
    Java Core, Level 8, Lesson 8
    Resolved
    What is The ErrorPlease Help..
    • 19.04.2019
    • 1729views
    • 1comment
    0
  • Godwin
    Level 14
    Sango
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Resolved
    Please help me, the code runs according to the task conditions but it is not verifying. I spent a lot of time testing the code with different inputs, i got it to run according to the task conditions but it still fails to verify. I am out of options, i need your help caring Java community. Thanks.
    • 22.05.2019
    • 1925views
    • 3comments
    0
  • Yash
    Level 15
    Sugar Hill
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Under discussion
    I think I made a mistake somewhere...I really don't know why its not working help?
    • 23.05.2019
    • 1129views
    • 3comments
    0
  • Amber
    Level 12
    Question about the task Creating cats
    Java Syntax, Level 5, Lesson 9
    Under discussion
    Can someone please explain initializing variable?I seem to understand what to do for all of them except for "The class must have a constructor that takes a name and age as arguments, and initializes all variables except the address." I don't get why for this one the code is just the two variables and not the others, when it says to initialize all
    • 14.05.2019
    • 1893views
    • 3comments
    0
  • dean
    Level 8
    Deutschland
    Question about the task Move one static modifier
    Java Syntax, Level 7, Lesson 12
    Under discussion
    i passed but i dont understnad the logic herewhat's the program tried to do/achieve? i dont get its purpose here.. would appericate if you can explain what's going on here :)) package com.codegym.task.task07.task0725; /* Move one static modifier */ public class Solution { public final static int A = 5; public final static int B =
    • 23.05.2019
    • 1379views
    • 1comment
    0
  • Antriksh singh
    Level 5
    Headingley
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Under discussion
    why i am getting this error "Be sure that you haven't mixed up the order of reading in the name and number from the keyboard. Check the conditions." if i change the sequence of Years and Name error is resolved.if i change the sequence of Years and Name in program error is resolved.
    • 23.05.2019
    • 1599views
    • 1comment
    0
  • Deepak Singh
    Level 9
    New Delhi
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Under discussion
    verification problemI'm having some problems with the verification part, i.e. this condition -> "The fix method should remove all words containing the letter "r" from the list. There is an exception: words containing both "r" and "l" should be left alone." If there is some problem with the code to fulfil the require
    • 05.05.2019
    • 1485views
    • 6comments
    0
  • dean
    Level 8
    Deutschland
    Question about the task The end
    Java Syntax, Level 7, Lesson 12
    Under discussion
    help pleasewhats wrong
    • 23.05.2019
    • 1601views
    • 3comments
    0
  • Brandon
    Level 7
    Houston
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Resolved
    Failing test even though it matches task conditions. Why?I've run and tested this code over and over and it seems to me to match the task conditions, however its not passing the tests? Does anyone know why?
    • 22.05.2019
    • 1280views
    • 5comments
    0
  • Djole
    Level 41
    Belgrade
    Question about the task MVC (part 3)
    Java Multithreading, Level 4, Lesson 14
    Resolved
    Do you have the same problem with verifying the last condition?public class UsersView implements View{ private Controller controller; @Override public void refresh(DataModel dataModel) { System.out.println("All users:"); for(User user : dataModel.getUsers()){ System.out.println("\t" + user); } //dataModel
    • 16.04.2019
    • 1459views
    • 4comments
    0
  • Ankush Rajput
    Level 25
    Bhopal
    Question about the task What sort of list is that?
    Java Syntax, Level 7, Lesson 6
    Resolved
    Why the program doesn't work ? it passes when i use add() but not with set(). Throws array-out-of bounds exception. The list isn't getting initialized to capacity 5. package com.codegym.task.task07.task0707; import java.util.*; /* What sort of list is that? */ public class Solution { public static void main(String[] args) throws Exception { //write your code here ArrayList string = new ArrayList(5); string.set(0,"r1");
    • 06.09.2018
    • 1988views
    • 6comments
    0
  • Finn
    Level 11
    Question about the task Min and max in arrays
    Java Syntax, Level 7, Lesson 12
    Resolved
    Please Help - third test fails!My code is not passing the third test even if it works correctly in the IDE
    • 22.05.2019
    • 1384views
    • 2comments
    0
  • dean
    Level 8
    Deutschland
    Question about the task Display numbers in reverse order
    Java Syntax, Level 7, Lesson 12
    Under discussion
    immeditate initialize errorimmediate initialize error:
    • 23.05.2019
    • 1719views
    • 3comments
    0
  • Djole
    Level 41
    Belgrade
    Question about the task 2048 (part 13)
    Java Multithreading, Level 10, Lesson 15
    Resolved
    i was sure about this one, but failed 2nd requirement ... if(model.canMove()) view.isGameLost = true; ... case KeyEvent.VK_R: model.randomMove(); break; ...
    • 21.05.2019
    • 1207views
    • 3comments
    0
  • Ash Ka
    Level 13
    Calgary
    Question about the task HashMap of 10 pairs
    Java Syntax, Level 8, Lesson 3
    Resolved
    The last step of verification failsWhat's the mistake here
    • 22.05.2019
    • 2011views
    • 3comments
    0
  • Pioniio
    Level 22
    Schaffhausen
    Question about the task Duplicating words
    Java Syntax, Level 7, Lesson 9
    Resolved
    Solution seems to work in Intellij but Verification failsHelo My solution seems to work fine, i get double values each on new line. Am I missing something here? please help, thanks
    • 22.05.2019
    • 2244views
    • 3comments
    0
  • 1
  • ...
  • 319
  • 320
  • 321
  • 322
  • 323
  • ...
  • 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