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
  • Bryce Lindley
    Level 9
    Olympia
    Question about the task Minimum of two numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    Getting Errors in this code. Not sure why but the ELSE-IF statements are throwing errors.
    • 21.02.2019
    • 1926views
    • 8comments
    2
  • Andrew
    Level 29
    Seattle
    Question about the task Mastering the static block
    Java Core, Level 5, Lesson 12
    Resolved
    If the input string is "plane", a Plane object should be stored in the variable result.I'm stuck here. Not sure why this wouldn't be working.
    • 01.02.2019
    • 1937views
    • 3comments
    1
  • karina abad
    Level 11
    Daly City
    Question about the task Checking the order
    Java Syntax, Level 7, Lesson 9
    Under discussion
    Cannot figure out how to fix the problemSo I think my problem is with the last index. I lowered down the number of words for the checking of the code so I know that's not a ten, but I just need to figure out the logic first and so far this is what I have. I'm not sure if I'm thinking about this right or doing this right. Please help!
    • 29.08.2019
    • 1399views
    • 1comment
    0
  • Balen Asangbeh
    Level 23
    Douala
    Question about the task Reading and writing to a file: Human
    Java Core, Level 10, Lesson 2
    Archived
    pls for some hints am really confusedpls for some hints am really confused
    • 06.04.2019
    • 1396views
    • 6comments
    0
  • Brandon Horvatic
    Level 27
    Johannesburg
    Question about the task Finding data inside a file
    Java Core, Level 8, Lesson 11
    Resolved
    How do you test output with args[0]? I get an ArrayOutOfBounds Exception and cannot see my data outputHow do you test output with args[0]? I get an ArrayOutOfBounds Exception and cannot see my data output
    • 28.09.2019
    • 1358views
    • 2comments
    0
  • hidden #10528391
    Level 6
    Under discussion
    Note that 0 is not a positive or negative number. whats that mean import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader (new InputStreamReader(System.in)); int a = Integer.parseInt(reader.readLine()); int b = Integer
    • 28.09.2019
    • 1385views
    • 2comments
    0
  • Henry
    Level 6
    Stuttgart
    Question about the task Maximum of four numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    helloThe output was correct when i tested the code but the verification shows that i didnt meet the third requirement.Please,i would appreciate if anyone can help check where i made error.Thanks.
    • 25.09.2019
    • 1442views
    • 2comments
    0
  • 季军
    Level 38
    Shanghai
    Question about the task Aggregator (part 8)
    Java Collections, Level 8, Lesson 15
    Under discussion
    Which site should i use?The cached page cannot pass the first requirement, does that mean that i should just use the real page for this task?
    • 29.09.2019
    • 1018views
    • 1comment
    0
  • Ivan
    Level 22
    Nope
    Question about the task Ascending numbers
    Java Syntax, Level 6, Lesson 11
    Resolved
    How to print each number on a different line?Guys, I've tried with and without loop, with and without print / println. Still can't pass the requirements... Please help me out! ... //printing the Arrays properly for (int a = 0; a < 1;a++) { System.out.println(Arrays.toString(numbers)); } ...
    • 01.10.2019
    • 1807views
    • 2comments
    0
  • GCPix
    Level 15
    Glasgow
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Resolved
    Not sure what I am missing, father will not validateSee code below. Everything apart from the father will validate. My guess was it was a typo in the sentence but I can't see it. The logic works as it prints the correct sentence and the mother prints and validates so why won't the father? TIA
    • 05.09.2019
    • 1369views
    • 2comments
    0
  • carter
    Level 8
    Middletown
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    Im getting the right results Ive looked over the for loops and I can't see what situation my code wouldn't maybe Im missing something please helpTried looking at the other issues people had I am not able to find the issue. Also I am receiving the right output
    • 30.09.2019
    • 1246views
    • 2comments
    0
  • Kotlet
    Level 28
    Wroclaw
    Question about the task Request parser
    Java Core, Level 5, Lesson 12
    Resolved
    Fail 4th requirementTried to rework this code many times (even changed exception type in try-catch block) without any success. Please help me find the bug. Any help would be greatly appreciated.
    • 09.07.2019
    • 1408views
    • 3comments
    1
  • Lukas Smetana
    Level 10
    London
    Question about the task Drawing a rectangle
    Java Syntax, Level 4, Lesson 13
    Under discussion
    Again, doesent work.It's printing beautiful rectangle but it's not passing your test. why?
    • 23.07.2019
    • 1033views
    • 2comments
    0
  • Raj Mishra
    Level 15
    India
    Question about the task Calling a constructor from a constructor
    Java Syntax, Level 5, Lesson 9
    Under discussion
    Why my 4th validation is failing?Could anyone please tell me why my 4th validation is failing? I have called a constructor with appropriate parameters.
    • 01.10.2019
    • 1324views
    • 1comment
    0
  • romeo
    Level 5
    Paramaribo
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 4
    Archived
    This Code is CORRECT!?Why when I try to validate it gives me errors on the last 2 conditions? This code is immaculate!!! Couldn't have been written better than The Creator, James Gosling himself... Yet both on IntelliJ and The webpage IDE I get errors on the last 2 conditions. (When the code is ran it meets all the requi
    • 28.05.2019
    • 1673views
    • 8comments
    0
  • Azhar Iqbal
    Level 18
    Multan
    Question about the task Buggy initializeIdAndName
    Java Core, Level 3, Lesson 2
    Under discussion
    What's the Problem ??A little hint is appreciated.
    • 26.09.2018
    • 1658views
    • 10comments
    0
  • John
    Level 27
    Washington DC
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    Not seeing why this is wrong...Not seeing why this is wrong...
    • 30.09.2019
    • 908views
    • 1comment
    0
  • Jeremy Simons
    Level 7
    Peterborough, Cambridgeshire, UK
    Question about the task Minimum number of statics
    Java Syntax, Level 6, Lesson 11
    Resolved
    I think my code should pass testing, so why doesn't it?Looking at my code which condition do I fail to satisfy?
    • 17.09.2019
    • 1211views
    • 3comments
    0
  • TONDO YOYA Ariel Christopher
    Level 16
    Rennes
    Under discussion
    what is wrong with my code?? package com.codegym.task.task04.task0412; /* Positive and negative numbers */ import java.io.*; import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { //write your code here Scanner myObj = new Scanner(System.in);
    • 30.09.2019
    • 960views
    • 1comment
    0
  • rani
    Level 7
    Bothell
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    task07.task0708 - Longest string program works fine but not getting verifiedpackage com.codegym.task.task07.task0708; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; /* Longest string */ public class Solution { private static List strings; public static String l; public static ArrayList fin = new
    • 30.09.2019
    • 1266views
    • 1comment
    0
  • Nikolaos
    Level 22
    Vrontados
    Question about the task Fix four mistakes
    Java Core, Level 4, Lesson 8
    Resolved
    What's wrong here? Any suggestion?"The printListValues ​​method should display the contents of the resulting list." But i don't understand why it doesn't..
    • 25.09.2019
    • 1761views
    • 2comments
    0
  • Patrick freeman
    Level 14
    Buffalo
    Question about the task Hello, StarCraft!
    Java Syntax, Level 3, Lesson 4
    Resolved
    Hello, Starcraft!Hello, I feel this task should be really easy, but I can't seem to set a name for each object. This is what I've tried thus far, and it doesn't pass verification. Thank you in advance for your help!
    • 21.09.2019
    • 1807views
    • 7comments
    0
  • hidden #10462592
    Level 8
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Under discussion
    last condition???? It works fine when I enter a positive number, but then there is an unwanted incrementation when the input is negative. How to satisfy the last condition? I even used the letters 'a' & 'b' as depicted in the question. Thanks in advance!
    • 05.09.2019
    • 1400views
    • 5comments
    0
  • Tara Edwards
    Level 6
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Under discussion
    Right answer, but failed requirements.So.. with a little help from @Heavy I got the program to run..but while I'm getting the correct output I'm faiing multiple requirements. Hmmm
    • 18.09.2019
    • 1260views
    • 5comments
    0
  • Kris
    Level 9
    Englewood
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Resolved
    The Code though longer works in IDEA but still I get errors for the last 3 conditions The Code though longer works in IDEA but still I get errors for the last 3 conditions
    • 26.09.2019
    • 1360views
    • 6comments
    0
  • Kris
    Level 9
    Englewood
    Question about the task Seasons on Terra
    Java Syntax, Level 4, Lesson 4
    Resolved
    Hi,Hi, Does anyone have an idea why this code is not working ? Btw I also tried with && and still not working -->>> public class Solution { public static void main(String[] args) { checkSeason(12); checkSeason(4); checkSeason(7); checkSeason(10);
    • 25.09.2019
    • 989views
    • 2comments
    0
  • Siddharth
    Level 14
    Seattle
    Question about the task Cat and Dog objects: 50,000 each
    Java Syntax, Level 6, Lesson 5
    Under discussion
    Time out, the program ran too long and was closed?What have I donewrong?
    • 30.07.2019
    • 1217views
    • 2comments
    0
  • Laurap5
    Level 9
    Vilnius
    Question about the task Somehow average
    Java Syntax, Level 4, Lesson 16
    Under discussion
    Please help,Doesn't working when I'm trying to test 1 3 2, receiving 3
    • 15.11.2018
    • 1528views
    • 5comments
    0
  • carter
    Level 8
    Middletown
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Under discussion
    getting the desired output under all circumstances yet still not meeting conditions. Maybe there is a different way to write the code that "meets the requirements" but is there anything fundamentally wrong with the way I am getting the answer ????
    • 30.09.2019
    • 1120views
    • 1comment
    0
  • fifi deng
    Level 22
    Paris
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    Nothing wrong i think socause why it cant fit the lase request~~
    • 28.09.2019
    • 1491views
    • 7comments
    0
  • 1
  • ...
  • 274
  • 275
  • 276
  • 277
  • 278
  • ...
  • 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