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
  • Deepak Chandra
    Level 16
    Visakhapatnam
    Question about the task Duplicating words
    Java Syntax, Level 7, Lesson 9
    Resolved
    Help pleaseDon't know why the third condition is failing. I am getting the output right but its not verifying.
    • 5/18/19
    • 1674views
    • 2comments
    1
  • Juan Pablo C
    Level 8
    Osorno
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Under discussion
    "The task failed to pass testing" Whats wrong with this? Plz helpI Tried on jdoodle.com and it's all Ok Used the example values at "conditions" and got the right answers
    • 5/26/19
    • 1736views
    • 0comments
    0
  • Razvii
    Level 16
    Timișoara
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Resolved
    If a triangle with the specified sides cannot exist, you need to display: "The triangle is not possible." ! WHAT IS WRONG ??I dont know what i wrong..
    • 5/24/19
    • 2673views
    • 4comments
    0
  • Vaishnavi
    Level 8
    Waukesha
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Resolved
    What did I do wrong?My code works perfectly, but does not fulfill the last requirement that it must fully match the task conditions. What did I do wrong?
    • 4/15/19
    • 1845views
    • 5comments
    0
  • Swati
    Level 8
    Pune
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Resolved
    where to use abs method?I dont understd where to use abs method and what is its use?
    • 10/31/18
    • 2023views
    • 6comments
    0
  • Halmstark
    Level 6
    Warsaw
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    Im pretty sure the code works correctlyCan anyone tell me what is wrong here?
    • 5/20/19
    • 1845views
    • 4comments
    0
  • Adnan Razzaq
    Level 15
    Bamberg
    Question about the task Seasons on Terra
    Java Syntax, Level 4, Lesson 4
    Resolved
    why is it not verfiying? can someone guide? package com.codegym.task.task04.task0411; /* Seasons on Terra */ public class Solution { public static void main(String[] args) { checkSeason(12); checkSeason(4); checkSeason(7); checkSeason(10); } public static void checkSeason(int month) {
    • 5/25/19
    • 1384views
    • 2comments
    0
  • Joe
    Level 2
    Chennai
    Under discussion
    In level 2 lesson 1 the task what way is it related to objects. how to code no headwayIn level 2 lesson 1 the task what way is it related to objects. how to code no headway Condition requesting to add solution class print Not exactly sure how that can be called - The main method should call the Solution class's print method exactly twice. the print method should display string 4
    • 5/21/19
    • 1050views
    • 2comments
    0
  • satish
    Level 15
    kadapa
    Question about the task One large array and two small ones
    Java Syntax, Level 7, Lesson 4
    Under discussion
    how to print the array elementsusing for loop to print arrays is not working why?
    • 5/24/19
    • 1415views
    • 2comments
    0
  • romeo
    Level 5
    Paramaribo
    Question about the task Product of 10 numbers
    Java Syntax, Level 3, Lesson 4
    Under discussion
    How could i have made this code better?I feel like I approached this the most basic way possible. Is there a better way I could have approached this? public static void main(String[] args) { //write your code here int a = 1; int b = 2; int c = 3; int d = 4; int e = 5; int f = 6;
    • 5/25/19
    • 1255views
    • 1comment
    0
  • null
    Level 17
    New York City
    Question about the task Going national
    Java Syntax, Level 8, Lesson 11
    Archived
    My solution public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String s = reader.readLine(); String[] strings = s.trim().split("\\s+"); for (String str: strings){ str = st
    • 5/24/19
    • 1172views
    • 3comments
    0
  • Courtney Cooper
    Level 2
    Westminster
    Question about the task Contract
    Java Syntax, Level 1, Lesson 6
    Resolved
    I keep getting an error regarding the number of lines...Where did I go wrong?
    • 5/3/19
    • 1501views
    • 4comments
    0
  • Jacob Warren
    Level 8
    Tampa
    Question about the task Improving functionality
    Java Syntax, Level 5, Lesson 12
    Resolved
    Okay what is actually wrong with this code?I know that it is a little bit messy and probably not the most condensed it could be but it works with every single set of numbers that I​ plugin. I have absolutely no idea why this isn't working. I did it before got it right and then it didn't save.
    • 5/25/19
    • 1900views
    • 0comments
    0
  • Mohamed Nagy
    Level 7
    Alexandria
    Question about the task Number of days in the year
    Java Syntax, Level 4, Lesson 4
    Resolved
    hey guys i wondering why should i suffer from this little things please tell me what's the problem hereplease help me in this code
    • 5/16/19
    • 2529views
    • 13comments
    2
  • Tejashree
    Level 7
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Under discussion
    not sure what is wrong package com.codegym.task.task04.task0416; /* at the beginning of each hour, the green signal is on for three minutes, then the signal is yellow for one minute, and then it is red for one minute. Then the light is green again for three minutes, etc. Use the keyboard to enter a real number t that r
    • 5/24/19
    • 1806views
    • 4comments
    0
  • satish
    Level 15
    kadapa
    Question about the task StringHelper class
    Java Syntax, Level 6, Lesson 8
    Under discussion
    i cant understand the problemhow to return 5 times
    • 5/23/19
    • 1568views
    • 2comments
    0
  • dean
    Level 8
    Deutschland
    Question about the task Shuffled just in time
    Java Syntax, Level 7, Lesson 12
    Under discussion
    whats missign herethanks
    • 5/23/19
    • 1352views
    • 4comments
    0
  • dean
    Level 8
    Deutschland
    Question about the task Min and max in arrays
    Java Syntax, Level 7, Lesson 12
    Under discussion
    missign 1 what am i missing?? :9
    • 5/23/19
    • 1647views
    • 8comments
    0
  • vengadesh
    Level 5
    chennai
    Question about the task This age doesn't work for me…
    Java Syntax, Level 4, Lesson 1
    Under discussion
    that should make how object is working for calling a different function and "this" keyword function pls help mepackage com.codegym.task.task04.task0401; /* This age doesn't work for me… */ public class Solution { public static void main(String[] args) { Person person = new Person(); System.out.println("Age: " + person.age); person.adjustAge(person.age); System.out.prin
    • 5/16/19
    • 1645views
    • 5comments
    0
  • EswaraRao
    Level 3
    Visakhapatnam
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    regarding print method?can anyone suggest me how to implement print method?
    • 5/9/19
    • 1865views
    • 5comments
    0
  • Marilyn Free
    Level 4
    Pensacola
    Question about the task Day of the week
    Java Syntax, Level 4, Lesson 4
    Resolved
    Can't figure out the errorpublic class Solution { public static void main(String[] args) throws Exception { BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in)); String num = buffer.readLine(); int number = Integer.parseInt(num); if(number ==
    • 12/14/18
    • 1632views
    • 5comments
    1
  • Juan Gallardo
    Level 10
    Edmonton
    Question about the task Day of the week
    Java Syntax, Level 4, Lesson 4
    Resolved
    No spelling errors. What could be wrong? String[] d = new String[7]; d[0] = "Monday"; d[1] = "Tuesday"; d[2] = "Wednesday"; d[3] = "Thursday"; d[4] = "Friday"; d[5] = "Saturday"; d[6] = "Sunday"; if (c >= 0 && c <=7) { System.out.println(d[c-1]);
    • 10/21/18
    • 1652views
    • 2comments
    1
  • Adnan Razzaq
    Level 15
    Bamberg
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Under discussion
    what I am doing wrong here? i cant get the verification. someone correct it package com.codegym.task.task03.task0318; /* Plan to conquer the world */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here InputStream inputStream = System.in; Reader inputStreamReader = new I
    • 5/25/19
    • 1469views
    • 3comments
    0
  • Vatsal Patel
    Level 15
    Naperville
    Question about the task Let's make the code do something useful!
    Java Syntax, Level 9, Lesson 11
    Under discussion
    What am I doing wrong?I thought the while loop copy the content.
    • 5/10/19
    • 1406views
    • 3comments
    0
  • VIVEK BARUAH
    Level 20
    Eluru
    Question about the task Shuffled just in time
    Java Syntax, Level 7, Lesson 12
    Under discussion
    Whats wrong here?package com.codegym.task.task07.task0720; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; /* Shuffled just in time */ public class Solution { public static void main(String[] args) throws IOException { BufferedReader r
    • 5/23/19
    • 1549views
    • 4comments
    0
  • Ash Ka
    Level 13
    Calgary
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Resolved
    The code does not seem to work for numbers over 127Pls help.
    • 5/24/19
    • 1433views
    • 2comments
    0
  • Yash
    Level 15
    Sugar Hill
    Question about the task Do we have a pair?
    Java Syntax, Level 4, Lesson 4
    Under discussion
    It works tho?????Why not work, help please.
    • 5/24/19
    • 1741views
    • 1comment
    0
  • Satya Vath
    Level 31
    Vijayawada
    Question about the task Reading and writing static fields to a file
    Java Core, Level 10, Lesson 2
    Under discussion
    Where is The ErrorPlease Help..
    • 4/22/19
    • 1662views
    • 1comment
    1
  • Tejashree
    Level 7
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Under discussion
    getting error at If a triangle with the specified sides cannot exist, you need to display: "The triangle is not possible."package com.codegym.task.task04.task0415; /* Rule of the triangle */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { InputStream inputStream=System.in; InputStreamReader inputStreamReader= new InputStreamReader(inputStream);
    • 5/24/19
    • 1796views
    • 3comments
    0
  • Emenike Ayalogu
    Level 13
    Bowling Green
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Resolved
    I didn’t pass the verification because my code those not work for numbers greater than 127. Please someone help!I didn’t pass the verification because my code those not work for number greater than 127. Please someone help!
    • 5/24/19
    • 1661views
    • 3comments
    0
  • 1
  • ...
  • 320
  • 321
  • 322
  • 323
  • 324
  • ...
  • 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