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
  • Shahanshah Alam
    Level 9
    Mohali
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    help pleasei m getting 0 if i try 3 -1 -3 -2 i know its because maximum is initialized as int maximum = 0; but how to resolve it?
    • 9/23/18
    • 1945views
    • 7comments
    3
  • Sergei Polakov
    Level 11
    Donets'k
    Question about the task Minimum of N numbers
    Java Syntax, Level 8, Lesson 11
    Resolved
    I cant understand whats wrongenter 524 5345 4357 1 output 5345
    • 5/15/19
    • 2143views
    • 5comments
    0
  • FADY ILIAS
    Level 5
    Perth
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 7
    Under discussion
    Not sure why this is failing ( expected)Hi, please look at my code and let me know why it is not running correctly. I am getting the error below: Thanks package com.codegym.task.task04.task0429; /* Positive and negative numbers */ import java.io.*; import java.util.*; public class Solution { public static void main(String[] a
    • 5/16/19
    • 2026views
    • 4comments
    0
  • Vadym Opalenyk
    Level 10
    Vyshneve
    Question about the task Drawing a rectangle
    Java Syntax, Level 4, Lesson 13
    Under discussion
    I do not understand the mistakeI do not understand the mistake
    • 5/15/19
    • 1458views
    • 6comments
    0
  • Bazsó Benjámin
    Level 20
    Szombathely
    Question about the task SimpleObject interface
    Java Core, Level 3, Lesson 11
    Resolved
    not sure what to do herenot sure what to do here
    • 4/15/19
    • 2000views
    • 3comments
    0
  • Voris
    Level 10
    Tashkent
    Question about the task Calculator
    Java Syntax, Level 6, Lesson 8
    Resolved
    Whats wrong with my percent method ?public static double percent(int a, int b) { double c = ((double)b/(double)a)*100; return c; }
    • 4/18/19
    • 2397views
    • 3comments
    0
  • Henk
    Level 19
    Pretoria
    Question about the task Incorrect lines
    Java Core, Level 3, Lesson 11
    Resolved
    Just wondering...Any particular reason why the String variable NAME is in capitals ? (Tried Google, not finding a simple or close explanation)
    • 5/16/19
    • 1499views
    • 1comment
    0
  • Kymie
    Level 4
    Singapore
    Question about the task Number of days in the year
    Java Syntax, Level 4, Lesson 4
    Under discussion
    What is the error here?Hi! I ran through all the test cases and there were no errors. However, I could not pass the testing, 2 conditions were still not met. I even tried on IntelliJ IDEA but still could not pass testing. Can anyone spot the error in my code? Thank you!
    • 5/16/19
    • 1301views
    • 1comment
    0
  • T.SWETHA
    Level 2
    Mumbai
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Resolved
    task public class Solution { public static void main(String[] args) { salary(8000); } public static void salary(int a) { a= a+ 1000; System.out.println("Your salary is:" +a+ " dollars per month."); } } what's wrong in this program?
    • 8/12/18
    • 3522views
    • 11comments
    0
  • Fernando Gerbrich
    Level 13
    Bad Aibling
    Question about the task The end
    Java Syntax, Level 7, Lesson 12
    Under discussion
    I don't get itthe output is right ... the programm works fine. but the fourth point will noch turn green.
    • 5/15/19
    • 2023views
    • 2comments
    0
  • Carlos
    Level 9
    Eskoriatza
    Question about the task One large array and two small ones
    Java Syntax, Level 7, Lesson 4
    Under discussion
    Whats happening? point 2 & 4 fails public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader= new BufferedReader(new InputStreamReader(System.in)); int[] bigArray=new int[20]; int[] smallArray1=new int[10]; int[] smallArr
    • 10/14/18
    • 1428views
    • 2comments
    2
  • Satya Vath
    Level 31
    Vijayawada
    Question about the task Picking out numbers
    Java Core, Level 9, Lesson 5
    Under discussion
    Please HelpHow to solve it
    • 4/19/19
    • 1802views
    • 1comment
    0
  • Emmanuel Adorkor
    Level 1
    Accra
    Question about the task Declare variables
    Java Syntax, Level 0, Lesson 4
    Resolved
    Why can't I declare variables with my phoneWhy cant I code with my phone
    • 4/30/19
    • 1626views
    • 1comment
    0
  • edis emin
    Level 7
    London
    Under discussion
    How do I improve on control flow statements?How do I improve on control flow statements? Right now I am really struggling with exercises which include things like while and for statements. Are there any resources I can use to improve my skills?
    • 4/29/19
    • 1264views
    • 1comment
    0
  • Mike McKenna
    Level 25
    Wilmington
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    error variable min might not have initalized .Hi, error is return min; ^ Thanks Mike McKenna
    • 4/29/19
    • 1336views
    • 1comment
    0
  • Lukasz Samulnik
    Level 16
    Warsaw
    Under discussion
    Split screenDoes anyone know how can I restore initial split screen when in exercise view? The one with conditions on the left and code editor on the right? Somehow it turned to look like more like a browser with tabs on top.
    • 4/26/19
    • 1352views
    • 1comment
    0
  • Mehala
    Level 0
    Question about the task I think being a programmer is cool
    Java Syntax, Level 0, Lesson 3
    Resolved
    what wrong in this code? when I compile it's executing the correct answer, but when I submit for verify it showing the task failed to pass testing.. anyone can u explain thisimport java.util.Scanner; public class Solution { String sc,mc,pc; public static void main(String[] args) { Scanner sc=new Scanner(System.in); String s=sc.nextLine(); System.out.print(s); Scanner mc=new Scanner(System.in); Strin
    • 5/15/19
    • 1692views
    • 2comments
    0
  • Yash
    Level 15
    Sugar Hill
    Question about the task Day of the week
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Not Working???I don't know why. It should work.
    • 5/14/19
    • 1291views
    • 1comment
    0
  • Mikayla Pace
    Level 27
    Salt Lake City
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Resolved
    My program does not print out the correct stringI can't figure out why my code isn't printing out the correct string. It seems like it is just returning whatever string is 9 characters long??
    • 5/14/19
    • 1951views
    • 4comments
    0
  • Sarah
    Level 3
    Nairobi
    Question about the task Kind words for the teacher
    Java Syntax, Level 0, Lesson 4
    Resolved
    errorcom/codegym/task/task01/task0102/Solution.java:12: error: cannot find symbol System.out.printIn("Ellie is clever"); ^ symbol: method printIn(java.lang.String) location: variable out of type java.io.PrintStream Anyone explain to me why am getting this error please, whe
    • 5/15/19
    • 1420views
    • 2comments
    0
  • ASHUTOSH SHUKLA
    Level 3
    Katni
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Resolved
    How to solve last condition of this task? How to solve last condition cause I don't get it? After trying also it stills shows error in last condition.
    • 5/2/19
    • 2011views
    • 9comments
    0
  • hidden #10426395
    Level 2
    Question about the task The great purge
    Java Syntax, Level 1, Lesson 8
    Resolved
    Any advice on how I shoud fix my code?Hope for the help guys because I'm stuck.
    • 2/10/19
    • 2068views
    • 9comments
    0
  • ROBERT KOSS
    Level 3
    Panama City
    Question about the task Favorite poem
    Java Syntax, Level 1, Lesson 8
    Resolved
    can someone give me the code down below please and thank you
    • 2/28/19
    • 2054views
    • 3comments
    0
  • Peta Velin Zoran
    Level 3
    Timisoara
    Question about the task Choose healthy food! Choose fruit!
    Java Syntax, Level 1, Lesson 8
    Resolved
    Server fails to see both stringsLvl1 Lesson 8 "Choose healthy food! Choose fruit!" -> solution // System.out.print(apple+"\n"+ peach); // is not valid, server only sees one string, even if the result is correct and displayed on two lines.
    • 5/12/19
    • 1503views
    • 2comments
    0
  • snow
    Level 2
    Varanasi
    Question about the task We don't need any extra lines
    Java Syntax, Level 1, Lesson 7
    Resolved
    Line 16 ,how to get correct answer?Java syntax Level 1 ,lesson 7
    • 8/1/18
    • 1936views
    • 5comments
    0
  • Rajasekhar
    Level 9
    Palo Alto
    Question about the task Move one static modifier
    Java Syntax, Level 7, Lesson 12
    Under discussion
    Please helpCan Any one can help me on this task please
    • 3/2/19
    • 1945views
    • 4comments
    0
  • Denis
    Level 25
    Vancouver
    Question about the task Building a file
    Java Core, Level 8, Lesson 11
    Under discussion
    Code works but doesn't pass the verification.Code works but doesn't pass the verification for about 80% WFT ??? ^)
    • 5/13/19
    • 1460views
    • 2comments
    0
  • Ash Ka
    Level 13
    Calgary
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Under discussion
    My code seems correct but it does not workMy code seems correct but it does not work
    • 5/9/19
    • 1410views
    • 5comments
    0
  • MakinTosH
    Level 20
    Vilnius
    Question about the task UnsupportedFileName
    Java Core, Level 8, Lesson 8
    Under discussion
    Can't check the string right...Is something wrong with validating string or the exception is not thrown?
    • 5/14/19
    • 1529views
    • 1comment
    0
  • sailaja
    Level 3
    Hyderabad
    Under discussion
    Write a function that computes the minimum of four numbers. The function min(a, b, c, d) should use (call) the function min(a, b)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) { int minimum; int e= min(a,b); if(c<=d && c<=e) { minimum = c; }else {
    • 5/14/19
    • 1563views
    • 2comments
    0
  • 1
  • ...
  • 325
  • 326
  • 327
  • 328
  • 329
  • ...
  • 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