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
  • Ferdz
    Level 2
    Makati
    Resolved
    Whats wrong with this code?public class Solution { public static void main(String[] args) { String apple = "Apple"; /* String porridge = "Porridge"; String sausage = "Sausage"; */ String peach = "Peach"; System.out.printIn(apple); System.out.printIn(peach); //write your code here
    • 1/1/19
    • 1339views
    • 3comments
    0
  • tony
    Level 20
    Nis
    Question about the task Walking in circles
    Java Syntax, Level 5, Lesson 9
    Resolved
    what's wrong herewhat's wrong here?
    • 1/3/19
    • 1722views
    • 3comments
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task Console-based piggy bank
    Java Syntax, Level 5, Lesson 12
    Under discussion
    what is wrong in my code?help
    • 1/3/19
    • 1447views
    • 1comment
    0
  • hidden #10412202
    Level 8
    Question about the task Min and max in arrays
    Java Syntax, Level 7, Lesson 12
    Resolved
    Program works correct, test failedHello, why is my code wrong according to the test? When I run it works correctly. Thank you. package com.codegym.task.task07.task0721; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /* Min and max in arrays */ public class Solution { public s
    • 1/3/19
    • 2271views
    • 3comments
    0
  • Vignesh Vickey
    Level 2
    Coimbatore
    Question about the task Where does a Person come from?
    Java Syntax, Level 2, Lesson 2
    Under discussion
    Person
    • 12/14/18
    • 1482views
    • 3comments
    0
  • Sokhib
    Level 7
    Makati
    Question about the task Deep and pure love
    Java Syntax, Level 3, Lesson 8
    Under discussion
    what am i doing wrong can anyone answer plz?what i did wrong?
    • 1/1/19
    • 1753views
    • 3comments
    0
  • Zbigniew
    Level 23
    Dabrowa Tarnowska
    Question about the task Cat and statics
    Java Syntax, Level 6, Lesson 11
    Resolved
    What is the problem here?Why i don't have access to variable catCount in the main method? I've tried creating the getter method for it but it didn't work. package com.codegym.task.task06.task0613; /* Cat and statics */ public class Solution { public static void main(String[] args) { for (int i = 0; i < 1
    • 1/2/19
    • 1812views
    • 2comments
    0
  • Swati
    Level 8
    Pune
    Question about the task Drawing lines
    Java Syntax, Level 4, Lesson 13
    Resolved
    Help to find out errorWhen i Run program,it is displaying 10 lines of 8's each vertically and horizontally.Still giving me error as "The program should display a vertical line of 10 eights. " Please help.
    • 11/13/18
    • 2059views
    • 11comments
    0
  • Swati
    Level 8
    Pune
    Question about the task Drawing lines
    Java Syntax, Level 4, Lesson 13
    Resolved
    Same errorI tried to display in different way still giving same error.
    • 11/14/18
    • 1930views
    • 4comments
    0
  • Ayu
    Level 8
    Mumbai
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Resolved
    please help me... I can't understand how can I display the string comes earlier in the shortest or longest list. I tried but my program is not displaying correct output if there is more than one shortest or longest string
    • 12/31/18
    • 1634views
    • 2comments
    0
  • Syed Tayyab ul Mazhar
    Level 12
    Karachi
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    The task failed to pass testing.My solution is correct, on running it displays the correct answer but, it doesn't pass the verification test. THIS IS A BUG!
    • 12/30/18
    • 1584views
    • 2comments
    0
  • Raffael
    Level 10
    Stuttgart
    Question about the task Predictions
    Java Syntax, Level 3, Lesson 8
    Resolved
    Can´t find my mistake :/ pls help mewhat do i wrong ?
    • 12/30/18
    • 1656views
    • 3comments
    0
  • hacks patel
    Level 20
    Ahmedabad
    Question about the task Make a family
    Java Syntax, Level 8, Lesson 11
    Under discussion
    help..i don't what is wrong with it
    • 12/29/18
    • 2015views
    • 3comments
    0
  • Aswini
    Level 5
    Irving
    Question about the task Our first converter!
    Java Syntax, Level 2, Lesson 2
    Under discussion
    confused about doing this taskwhat is wrong here? Double TC; TC=(celsius-32) * 5/9; return TF; what does return actually do and what are we returning from this method?>
    • 12/10/18
    • 1528views
    • 5comments
    0
  • Mitchell Lori
    Level 2
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Under discussion
    need helpI am having trouble with System.out.println(); I have tried several attempts and i have even reviewed a couple of the resolve comments Nothing has changed the results of the verifying status Can someone please help me and explain where I am going wrong? I have spaced before and after variable (b)..
    • 12/6/18
    • 1446views
    • 2comments
    0
  • Mitchell Lori
    Level 2
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Under discussion
    STILL HAVING PROBLEM :(I am having trouble with System.out.println(); I have tried several attempts and i have even reviewed a couple of the resolve comments Nothing has changed the results of the verifying status Can someone please help me and explain where I am going wrong? I have spaced before and after variable (b)..
    • 12/6/18
    • 2014views
    • 3comments
    0
  • Raisa Toscano
    Level 27
    Tepic
    Question about the task Square of a number
    Java Syntax, Level 1, Lesson 8
    Archived
    Whats wrong? i could run it on neat beans? public static void main(String[] args) { System.out.print("the square of 5 "+ sqr(5)); //write your code here }
    • 12/9/18
    • 1741views
    • 4comments
    0
  • Anonymous #10386685
    Level 9
    Question about the task We don't need repeats
    Java Syntax, Level 8, Lesson 8
    Resolved
    Why did iterator not work but for-each did?I have already completed the task, but I was wondering why when I used iterator it did not iterate over the map and only checked if the first value in the map was repeated, while the for-each checked all values of the map to see if they were repeated and was able to complete the task. Since I comple
    • 12/27/18
    • 2061views
    • 3comments
    0
  • Santhosh Balaguru
    Level 7
    Chennai
    Question about the task KissMyShinyMetalRearActuator
    Java Syntax, Level 6, Lesson 11
    Resolved
    Got output correctly but stilling getting errorgetting error
    • 12/28/18
    • 2281views
    • 7comments
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Under discussion
    need helpWhat is wrong in my code?
    • 12/28/18
    • 1474views
    • 1comment
    0
  • Sabine Meijran-Prins
    Level 7
    Enschede
    Question about the task Cats in the Universe
    Java Syntax, Level 4, Lesson 2
    Under discussion
    Why are objects made in this task?I am busy solving the task cats in the Universe. But what I do not understand is that objects were made. What I have learned so far is that there are no object needed for a static variable. So I am wondering why they are made?
    • 12/19/18
    • 1446views
    • 2comments
    1
  • Akhilesh
    Level 14
    Mumbai
    Question about the task Implement the fight method
    Java Syntax, Level 5, Lesson 5
    Resolved
    What's wrong in this code?public class Cat { public int age; public int weight; public int strength; public int point=0; public Cat() { } public boolean fight(Cat anotherCat) { //write your code here if(this.age>=anotherCat.age) point++; els
    • 10/28/18
    • 2191views
    • 5comments
    0
  • Alan Heffernan
    Level 17
    Anwoth
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Resolved
    Can anyone see what's wrong with my code?Can any help modify my code to make this work? I think my logic in my while loop is correct but think the problem might be my variables outside of the loop? Thanks in advance!
    • 12/26/18
    • 1903views
    • 3comments
    0
  • Po
    Level 1
    Taipei
    Question about the task Checking the order
    Java Syntax, Level 7, Lesson 9
    Resolved
    Need some helpI don't know how to set my condition in line 25, because it shows "java.lang.IndexOutOfBoundsException " Can anyone give me some advice? Thanks a lot~
    • 11/4/18
    • 1903views
    • 10comments
    0
  • Sourav Gunner
    Level 19
    Birtamode
    Question about the task This age doesn't work for me…
    Java Syntax, Level 4, Lesson 1
    Under discussion
    what is the problem here package 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 is: " + person.age); person.adjustAge(person.age); System.out.
    • 8/24/18
    • 2102views
    • 5comments
    0
  • rsingh04
    Level 6
    Mumbai
    Question about the task Adding
    Java Syntax, Level 4, Lesson 16
    Under discussion
    need help?please help someone please. how to check the condition? how many input we need to sum up?????
    • 12/27/18
    • 1269views
    • 3comments
    0
  • Eduardo
    Level 23
    Coyoacan
    Question about the task Animal identification
    Java Core, Level 2, Lesson 2
    Resolved
    Correct output, but won't verifyHello. I'm getting the correct output (I also tried adding another else if that checked if it was a Pig and then printed "Pig" and then also one that same case printed "Unknown animal" to no avail). Any hints? Thanks
    • 12/27/18
    • 2027views
    • 2comments
    0
  • ann
    Level 4
    Dusseldorf
    Question about the task Sum of the digits of a three-digit number
    Java Syntax, Level 3, Lesson 12
    Under discussion
    Can anyone please explain why this is not working?package com.codegym.task.task01.task0132; /* Sum of the digits of a three-digit number */ public class Solution { public static void main(String[] args) { System.out.println(sumDigitsInNumber(546)); } public static int sumDigitsInNumber(int number) { //write your cod
    • 12/6/18
    • 2196views
    • 3comments
    0
  • Sokhib
    Level 7
    Makati
    Question about the task Sum of the digits of a three-digit number
    Java Syntax, Level 3, Lesson 12
    Under discussion
    Can anyone tell me what i did wrong?Can anyone tell me what i did wrong? Thanks!!!
    • 12/5/18
    • 1965views
    • 3comments
    0
  • yash mohan
    Level 3
    Gurgaon
    Under discussion
    pls tell me codewhat to code in Celsius to Fahrenheit lesson
    • 12/27/18
    • 1869views
    • 1comment
    0
  • 1
  • ...
  • 353
  • 354
  • 355
  • 356
  • 357
  • ...
  • 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