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
  • Arvind Prakhar
    Level 7
    Dhanbad
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    2 errorsMy first two condition is not full filled .But why its not getting full filled instead i have initiated the ArrayList and took input from user.So why its showing error
    • 22.12.2018
    • 1725views
    • 3comments
    0
  • Varunkumar
    Level 3
    Chennai
    Question about the task Square of a number
    Java Syntax, Level 1, Lesson 8
    Archived
    How to call a method in java??https://codegym.cc/tasks/com.codegym.task.task01.task0127
    • 16.01.2019
    • 1335views
    • 2comments
    0
  • WatWat
    Level 9
    Vancouver
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Under discussion
    Ran with correct output an no errors why is it not being verifiedNot being verified. Please look at my code
    • 14.10.2018
    • 1486views
    • 3comments
    0
  • Rad
    Level 8
    Maidstone
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Under discussion
    i need helpi did some mistakes in my code,please help me how to correct it
    • 08.11.2018
    • 1269views
    • 3comments
    0
  • Zbigniew
    Level 23
    Dabrowa Tarnowska
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Resolved
    More efficient way of solving this taskI've managed to solve this task with the code below, but it does't seem to be most efficient way to do this. What's the most compact way of solving this task? I would appreciate if somebody could post his/hers code with short explanation. Pointing out my mistakes and explaining them is also welcome.
    • 06.01.2019
    • 2271views
    • 3comments
    0
  • Sarvesh
    Level 11
    Bangalore
    Question about the task Display right away
    Java Syntax, Level 3, Lesson 3
    Under discussion
    Could you help me find my mistake here in the below code for the task. package com.codegym.task.task03.task0302; /* Display right away */ public class Solution { // write your code here public static void main(String[] args) { printString("Hello, Amigo!"); } public static void printString(String s);{ System.out.println("s"); }
    • 06.01.2019
    • 1652views
    • 5comments
    0
  • Sabine Meijran-Prins
    Level 7
    Enschede
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    Something wrong with my code..Do you know what is wrong with this code? public class Solution { public static int min(int a, int b, int c) { int m2; if ((a < b) && (a < c)){ m2 = a; } if ((b < a) && (b < c)){ m2 = b; } if ((c < a) &
    • 29.11.2018
    • 1458views
    • 5comments
    0
  • Sravya
    Level 3
    Hyderabad
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Under discussion
    why i'm getting typo error?why i'm getting typo error??
    • 09.01.2019
    • 1273views
    • 4comments
    0
  • MP
    Level 8
    Wietzendorf
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    Just a question about the functionsHello there, I have a short question about this task. I did solve it but I'm curious - are they both not have the same name (min)? Isn't that a little confusing for the compiler? What is the difference between them so the compiler knows how to handle it? Sorry if that question might be dumb :)
    • 15.01.2019
    • 1237views
    • 5comments
    0
  • Joy Majumdar
    Level 16
    Kolkata
    Question about the task One large array and two small ones
    Java Syntax, Level 7, Lesson 4
    Resolved
    What is wrong here ?Point out
    • 15.01.2019
    • 1772views
    • 2comments
    0
  • Mohammed Amine EL AMRANI
    Level 11
    Rabat
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Under discussion
    key "Cat"Hello, public static class Cat { private String name; private Cat mother; private Cat father; } What does it mean the keyword " Cat " before mother/father ?
    • 19.12.2018
    • 1291views
    • 3comments
    0
  • Aditya Ashtikar
    Level 8
    Kaul
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Resolved
    Provided conditions were a typo, a single verification criteria not metDon't see it, just don't see it! Someone please help it won't verify, I don't know if it's a typo(which was earlier and took like 30 minutes for me to get, seriously the conditions defined are a typo) or some code problem. Either way, someone please provide some insight.
    • 06.08.2018
    • 2301views
    • 4comments
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    Can you help me?i don't have idea how to reslove it.
    • 04.01.2019
    • 1460views
    • 2comments
    0
  • gery
    Level 9
    Islamabad
    Question about the task Calculator
    Java Syntax, Level 6, Lesson 8
    Resolved
    correction needed in division method public static int plus(int a, int b) { //write your code here return (a + b); } public static int minus(int a, int b) { //write your code here return (a - b); } public static int multiply(int a, int b) { //write your code here return
    • 19.09.2018
    • 3492views
    • 3comments
    2
  • Sushant
    Level 4
    goa
    Question about the task Family relations
    Java Syntax, Level 2, Lesson 2
    Resolved
    Family relationsHELP TO FIND THE SOLUTION.
    • 03.08.2018
    • 2807views
    • 6comments
    0
  • Somya Gupta
    Level 4
    Vrindavan
    Question about the task Family relations
    Java Syntax, Level 2, Lesson 2
    Resolved
    what is the answerof 3 and 4 package com.codegym.task.task02.task0204; /* Family relations */ public class Solution { public static void main(String[] args) { //write your code here Man man= new Man(); Woman woman= new Woman(); woman.husband=Man; Man.wife=Woman;
    • 18.08.2018
    • 2393views
    • 3comments
    0
  • Sushant
    Level 4
    goa
    Question about the task The great purge
    Java Syntax, Level 1, Lesson 8
    Resolved
    can any one help me out from this task.can any one help
    • 02.08.2018
    • 1696views
    • 5comments
    0
  • ShirAz SiddiQui
    Level 8
    Karachi
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    I'm not able to understand this requirement. The min(a, b, c, d) method must use the min(a, b) method.I'm not able to understand this requirement. The min(a, b, c, d) method must use the min(a, b) method. Can anyone help me understand this question?
    • 12.01.2019
    • 1571views
    • 2comments
    0
  • Hafsah Jilanee
    Level 10
    Karachi
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Under discussion
    Program not workingCan someone please help me where I messed up? I followed the syntax mentioned but it's somehow not running.
    • 12.01.2019
    • 1484views
    • 5comments
    0
  • Laurap5
    Level 9
    Vilnius
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Resolved
    Please help:(BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String n1 = reader.readLine(); char ch = n1.charAt(0); int n = Character.getNumericValue(ch); if (n % 2 == 0){ even++; } else if (n % 2 ==1){ odd++
    • 21.11.2018
    • 1951views
    • 11comments
    1
  • Pawan Harde
    Level 4
    Mumbai
    Question about the task Do we have a pair?
    Java Syntax, Level 4, Lesson 4
    Under discussion
    idk how this error is generatederror: incompatible types: int cannot be converted to boolean if(a=b=c){ ^
    • 12.10.2018
    • 1604views
    • 2comments
    0
  • Angeget
    Level 22
    Potsdam
    Question about the task Do we have a pair?
    Java Syntax, Level 4, Lesson 4
    Resolved
    The code is working, can somebody help me how to improve it please? //first compare all three numbers if(number1 == number2 && number1 == number3 && number2 == number3) System.out.println(number1 + " " + number2 + " " + number3); else if (number2 == number3 ) System.out.println(number2 + " " + number3);
    • 24.12.2018
    • 1622views
    • 1comment
    0
  • Andrew
    Level 29
    Seattle
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Resolved
    IDE not processing current taskIDE issue: Ever since the tasks started using keyboard input (Level 3 Lesson 8) I'm having trouble getting the test to run on the current task. When I select the Verify task button it just reruns test on the previous task. I've been restarting IntelliJ between each task to get it to move on to the
    • 10.01.2019
    • 1512views
    • 2comments
    0
  • Angeget
    Level 22
    Potsdam
    Question about the task Make a family
    Java Syntax, Level 8, Lesson 11
    Resolved
    Don't know what is wrong hier - please i need HelpDon't know what is wrong hier - please i need Help
    • 10.01.2019
    • 2048views
    • 3comments
    0
  • Dino
    Level 13
    Zagreb
    Under discussion
    Can anyone tell me what doesn't work here? Thanks!package com.codegym.task.task08.task0814; import java.util.HashSet; import java.util.Set; import java.util.Iterator; /* Greater than 10? You're not a good fit for us */ public class Solution { public static HashSet createSet() { // write your code here int[] a = {1, 2, 3, 4,
    • 10.01.2019
    • 1119views
    • 1comment
    0
  • Ansh Rupani
    Level 2
    Lucknow
    Question about the task CodeGym. Learn once - use anywhere
    Java Syntax, Level 1, Lesson 4
    Under discussion
    HOW TO DO THIS PROGRAM PLZ EXPLAINI ANT UNDERSTAND HOW TO DO THIS PROGRAM . DO WE HAVE TO USE A LOOP HERE? HOW TO DO THIS PROGRAM PLZ EXPLAIN
    • 28.12.2018
    • 1462views
    • 2comments
    0
  • Talha Javed
    Level 4
    sialkot
    Under discussion
    unlock plzhow to unlock my level 2 lesson 1
    • 13.09.2018
    • 1154views
    • 2comments
    0
  • Rahul Sakhare
    Level 5
    Pune
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Resolved
    Written code using Scanner class but, still getting error..!!import java.io.*; import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { Scanner sc1 = new Scanner(System.in); String name = sc1.next(); int years = sc1.nextInt(); System.out.println(name + " will take over t
    • 09.01.2019
    • 1783views
    • 3comments
    0
  • Eduardo
    Level 23
    Coyoacan
    Question about the task Software update
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Why is the value null?Hi, I run the program but it always shows a null value (like there where no families or values in the map). What am I missing? Thanks
    • 09.01.2019
    • 1295views
    • 2comments
    0
  • JGO
    Level 4
    San Jose
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    Minimum What mistake am I making in my code?
    • 05.01.2019
    • 1333views
    • 1comment
    0
  • 1
  • ...
  • 349
  • 350
  • 351
  • 352
  • 353
  • ...
  • 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