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
  • Andrey
    Level 2
    Tula
    Under discussion
    problems with the first lessonGreetings to all! Tell me, what's wrong with my code? public class Solution { public static void main(String[] args) { System.out.print("I think being a programmer is cool"); } }
    • 2/20/19
    • 1536views
    • 5comments
    0
  • Eric Soto
    Level 3
    Tampa
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    I managed to solve it but I am not sure if I understood.I got it right according to the verification but I feel like I didnt learn what it exactly meant. Was is THAT simple the solution?
    • 2/21/19
    • 1592views
    • 1comment
    0
  • Ovo Leslie
    Level 26
    Lagos
    Question about the task Multiplication table
    Java Syntax, Level 3, Lesson 6
    Resolved
    Why I'm I getting an extra column I seem to get the table right but I am getting the last columns repeated. Why?
    • 1/31/19
    • 1757views
    • 3comments
    0
  • C. Chiang
    Level 18
    Bryan
    Question about the task OOP: Fix inheritance problems
    Java Core, Level 5, Lesson 2
    Resolved
    Cannot quite figure out for a while.Must return Object from a boolean method. How to do?
    • 2/19/19
    • 2353views
    • 2comments
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task OOP: Fix inheritance problems
    Java Core, Level 5, Lesson 2
    Under discussion
    I am not sure if i understand this task properlyoutput is: [Thumb does not contain bones, Forefinger does not contain bones, Middle finger does not contain bones, Ring-finger contains bones, Pinky does not contain bones] [Hand contains bones, Leg contains bones, Head contains bones, Body contains bones] Yes
    • 2/20/19
    • 1465views
    • 1comment
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task OOP: Books
    Java Core, Level 5, Lesson 2
    Under discussion
    What is wrong in my code?need help
    • 2/20/19
    • 1593views
    • 1comment
    0
  • Serghei
    Level 3
    Balti
    Resolved
    Only last condition is wrong....i dont return the minimum of a,b and cpackage com.codegym.task.task02.task0216; /* Minimum of three numbers */ public class Solution { public static int min(int a, int b, int c) { //write your code herint min; int mon; if((a <= b) && (b <= c)) mon = a; else mon = c;
    • 2/20/19
    • 1256views
    • 1comment
    0
  • Gurpreet Grewal
    Level 4
    Mumbai
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    plz help...stuck from 1 dayhow to compare these methods?
    • 2/18/19
    • 2366views
    • 12comments
    0
  • suresh rai
    Level 3
    Question about the task Contract
    Java Syntax, Level 1, Lesson 6
    Under discussion
    what is wrong with my program need helppackage com.codegym.task.task01.task0121; /* Contract */ public class Solution { public static void main(String[] args) { System.out.println("My name is Amigo"); System.out.println(); System.out.println("I agree to wages of $5000/month in the first year."); Sy
    • 1/8/19
    • 1991views
    • 4comments
    0
  • jack reacher
    Level 4
    a man from nowhere
    Question about the task Comment out the superfluous
    Java Syntax, Level 1, Lesson 4
    Under discussion
    clue pleaseanyone please give a clue
    • 9/6/18
    • 2228views
    • 10comments
    0
  • // Java Poser
    Level 18
    Cincinnati
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Under discussion
    Need Help Please!1. I'm not sure how to grab one digit from an integer. 2. I don't know how to grab the next digit from the integer. 3. I'm not sure when to stop my loop.
    • 2/17/19
    • 1968views
    • 3comments
    0
  • Vikas
    Level 3
    Delhi
    Question about the task Only 20 will do
    Java Syntax, Level 1, Lesson 4
    Resolved
    task01.task0137 - Only 20 will dopublic class Solution { public static int a = 1; public static int b = 3; public static int c = 9; public static int d = 27; public static void main(String[] args) { int result = + a - b + c - d; System.out.println(result); } } 1. Values ​​of variables: Do
    • 7/30/18
    • 2580views
    • 5comments
    0
  • Jeff Jeffy
    Level 15
    Irvine
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Resolved
    What is WRONG?BlueJ seems to think works properly, so after reading the failed reuirements, I saw that I should use the abs method, but I don't need the abs method! Why must codegym limit my ingenuity with such restraints? How can I do the task with the abs method?
    • 2/17/19
    • 1816views
    • 2comments
    0
  • Kim Ledford Wilson
    Level 4
    Cleveland
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    Below is my code: I just can't get it. I'm missing something help please!package com.codegym.task.task02.task0217; /* Minimum of four numbers */ public class Solution { public static int min(int a, int b, int c, int d) { //write your code here this.min(a,b); int a1 = (); int a2 = 0; int a3; if (c<=d) { a2 =
    • 2/13/19
    • 1739views
    • 3comments
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task GCD
    Java Core, Level 4, Lesson 8
    Resolved
    What is wrong here?need hint
    • 2/18/19
    • 1770views
    • 1comment
    0
  • tony
    Level 20
    Nis
    Question about the task OOP: Cars
    Java Core, Level 5, Lesson 2
    Under discussion
    pls helpPlease help me to figure out what is wrong with my code. I tested it in Eclipse and I got correct output
    • 2/16/19
    • 1477views
    • 2comments
    0
  • Jarrett “Psalm 91:4” Ridlinghafer
    Level 2
    Tucson
    Under discussion
    How to verify my account?Hi, I've got a notice that I need to verify my account via email however I never received an email from codeGym...is there a way to have it resent or something? Thanks!
    • 2/17/19
    • 1379views
    • 1comment
    0
  • shaan mohd khan
    Level 13
    Jhansi
    Question about the task In decreasing order
    Java Syntax, Level 7, Lesson 12
    Resolved
    help me...tried a lot but not able to complete the task public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int[] array = new int[20]; for (int i = 0; i < 20; i++) { array[i] = Integer.parseInt(reader.rea
    • 2/9/19
    • 2204views
    • 2comments
    0
  • Gurpreet Grewal
    Level 4
    Mumbai
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    how to compareHow to compare min(int a, int b) and min(int c, int d) ?
    • 2/18/19
    • 1556views
    • 1comment
    0
  • hidden #10425441
    Level 3
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Under discussion
    I think I have a problem with my intellIJ, can somebody help me with these error messages? Why is the word "Exception" grey? Thank youWhy is the word "Exception" grey? And how do I fix that "missing Javadoc" error?
    • 2/18/19
    • 2141views
    • 1comment
    0
  • Gurpreet Grewal
    Level 4
    Mumbai
    Question about the task Family relations
    Java Syntax, Level 2, Lesson 2
    Resolved
    Variable is wrongIs this a correct way to declare variable ? public Woman wife;
    • 2/17/19
    • 1783views
    • 2comments
    0
  • Angeget
    Level 22
    Potsdam
    Question about the task Robot wars
    Java Core, Level 3, Lesson 11
    Resolved
    No idea i am confused and i do not understand why this is not working - please helpNo idea i am confused and i do not understand why this is not working - please help
    • 1/26/19
    • 1967views
    • 2comments
    0
  • Oleg Vanyushkin
    Level 18
    St.-Petersburg
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Under discussion
    Cant pass. Could you take a look why? It works fine for me.The validator expects me to fill my arrayList. I did. It works fine. Why? Could you look at this if you will, please?
    • 2/16/19
    • 2287views
    • 4comments
    0
  • Philip Obiorah
    Level 16
    Port - Harcourt
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Resolved
    How do I fix this.Recommendation : Be sure that the length of the longest sequence is calculated correctly when it is located at the end of the list of entered numbers. It returns 2 when tried with 2 4 14 4 8 8 4 12 12 12 please how do I fix this ?
    • 2/14/19
    • 1481views
    • 2comments
    0
  • C. Chiang
    Level 18
    Bryan
    Question about the task Sorting even numbers from a file
    Java Core, Level 3, Lesson 11
    Archived
    Can not pass verify, need help!display too many lines condition is the one I really can not pass
    • 2/16/19
    • 1783views
    • 2comments
    0
  • SandeepK
    Level 2
    Kuliyapitiya
    Under discussion
    Did not understand the logic behind the display of 12 first and followed by 2. public class Solution { public static void main(String[] args) { int x = 2; int y = 12; y = x + y; x = y - x; y = y - x; System.out.println(x); System.out.println(y); } }
    • 2/16/19
    • 1442views
    • 1comment
    0
  • Kisszol
    Level 15
    Toeroekbalint
    Resolved
    Is https://codegym.cc free of charge ?Hi ! Is this course free of charge ? Should I pay for it ?
    • 2/16/19
    • 2145views
    • 0comments
    0
  • Alex Balandinos
    Level 18
    Lusaka
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Under discussion
    When entering 4231-1 am getting 0.0 need help can't work my way around it
    • 2/15/19
    • 1675views
    • 5comments
    0
  • Zbigniew
    Level 23
    Dabrowa Tarnowska
    Question about the task OOP: Fix inheritance problems
    Java Core, Level 5, Lesson 2
    Resolved
    I don't understand the taskThe task seems to be complicated. I don't understand the logic of it. 1) How can the containsBones() method return an Object and simultaneously a String "Yes"? 2) What return type should the BodyPart's containsBones() method have? 3) What Object does it need to return? 4) Do i understand correctl
    • 2/14/19
    • 1723views
    • 2comments
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task Janitorial services
    Java Core, Level 4, Lesson 8
    Under discussion
    Where did i mistake?need hint
    • 2/15/19
    • 1296views
    • 1comment
    0
  • 1
  • ...
  • 344
  • 345
  • 346
  • 347
  • 348
  • ...
  • 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