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
  • Mais
    Level 4
    Hebron
    Question about the task Pets need people
    Java Syntax, Level 2, Lesson 5
    Under discussion
    i can't understand why this is not true!!>Here's the compiler output: com/codegym/task/task02/task0213/Solution.java:15: error: cannot find symbol fish.ownar = woman;
    • 11/19/18
    • 1702views
    • 2comments
    0
  • Sokhibjon
    Level 14
    Tashkent
    Question about the task 2 + 3 = 5
    Java Syntax, Level 0, Lesson 8
    Under discussion
    can u guys plz help me?whats wrong with it why it is saying don't change or add comments total nonsense !!
    • 11/16/18
    • 1532views
    • 2comments
    0
  • Rad
    Level 8
    Maidstone
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Under discussion
    i need helpmy code is not working properly,pls let me know what mistake i did
    • 11/18/18
    • 1565views
    • 1comment
    0
  • anhe
    Level 5
    fairfax
    Question about the task Number of days in the year
    Java Syntax, Level 4, Lesson 4
    Under discussion
    output is crrect, but not acceptwhat is the problem
    • 11/6/18
    • 1863views
    • 2comments
    0
  • uggu
    Level 18
    Kaunas
    Question about the task Fixing the mistakes of youth
    Java Syntax, Level 6, Lesson 11
    Resolved
    Alternative to if statementI got the exercise right. My question is how does this part work: max = a > b ? a : b; as a noob I would have used an if statement. How is this kind of statement called?
    • 11/17/18
    • 1586views
    • 3comments
    0
  • Joe Burner
    Level 1
    Dallas
    Question about the task The great purge
    Java Syntax, Level 1, Lesson 8
    Under discussion
    I have commented out the two unused variables, I am still getting errors. package com.codegym.task.task01.task0125; /* The great purge */ public class Solution { public static void main(String[] args) { // String s = "15"; //variable not used a = 5; // int z = 18; //variable not used int d = 18; c = a + d; b = " is
    • 11/13/18
    • 1598views
    • 3comments
    0
  • Sheheryar
    Level 7
    Islamabad
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Under discussion
    HELP ME OUT HERE PLZits shows the correct answer even with negative numbers but it's still giving me error
    • 11/17/18
    • 1998views
    • 2comments
    0
  • james Hellums
    Level 1
    Lawton
    Question about the task Kind words for the teacher
    Java Syntax, Level 0, Lesson 4
    Under discussion
    Where to input codewhere do I input the code on the assignments ?
    • 11/16/18
    • 1556views
    • 2comments
    0
  • Derek Jones
    Level 4
    Kettering, Ohio
    Question about the task 2 + 3 = 5
    Java Syntax, Level 0, Lesson 8
    Under discussion
    Keep Failing the "Don't Change or Add Commands" CheckI've tried different formatting, thinking that the issue is that the check is looking for a specific format but without luck. This includes putting the comment symbol in the first column, including space, no space or tabs between the symbol and "System..." and everything else that I could think of
    • 11/15/18
    • 1635views
    • 3comments
    0
  • Ahmed
    Level 8
    Al Muharraq
    Question about the task Somehow average
    Java Syntax, Level 4, Lesson 16
    Under discussion
    Why is the program failing to display the middle of three numbers requirement?checked Inputting 1 2 3 in different orders, program is working correctly
    • 11/16/18
    • 1543views
    • 2comments
    0
  • Abhilash Ravichandran
    Level 10
    Kigali
    Question about the task Task about algorithms
    Java Syntax, Level 9, Lesson 11
    Under discussion
    Compilation error on repeated inputsI am getting a NoSuchElementException in line 19. How should I overcome this?
    • 11/8/18
    • 1526views
    • 1comment
    0
  • M suleman
    Level 20
    Lahore
    Question about the task Most frequent bytes
    Java Core, Level 8, Lesson 3
    Under discussion
    how print most occur byte? public class Solution { public static void main(String[] args) throws IOException { String fname; Scanner scan = new Scanner(System.in); fname = scan.nextLine(); FileInputStream in = new FileInputStream(fname); int temp=in.read(); int c=0;
    • 11/10/18
    • 2035views
    • 3comments
    0
  • Riya
    Level 8
    Karnal
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Under discussion
    the program is not runningIt is showing Program ran too long and closed Why
    • 11/16/18
    • 1399views
    • 2comments
    0
  • Ujjwal Singh
    Level 2
    Mumbai
    Question about the task Uh... Happy New Year!
    Java Syntax, Level 1, Lesson 4
    Under discussion
    Not ableI am not getting space between "new" and "year" in the same line.
    • 10/18/18
    • 1568views
    • 4comments
    0
  • hidden #10362262
    Level 9
    Question about the task Describing numbers
    Java Syntax, Level 4, Lesson 7
    Archived
    Is null String "" the same as displaying nothing? To pass last requirementHow do I pass the last condition? That is to display "nothing". Is the null String "" the same as displaying nothing? Thank you!
    • 11/15/18
    • 1434views
    • 2comments
    0
  • Juan Gallardo
    Level 10
    Edmonton
    Question about the task Expressing ourselves more concisely
    Java Syntax, Level 7, Lesson 6
    Archived
    This program should be passingAny ideas?
    • 11/11/18
    • 1649views
    • 3comments
    0
  • nithya lmk
    Level 4
    Bangalore
    Question about the task Sum of the digits of a three-digit number
    Java Syntax, Level 3, Lesson 12
    Resolved
    can someone tell the error? 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) { int sum ;
    • 8/21/18
    • 2431views
    • 6comments
    0
  • Xuhaib
    Level 7
    Lahore
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    Is the error logical or syntax related?Line no# 40
    • 11/15/18
    • 1654views
    • 1comment
    0
  • kirti
    Level 8
    Question about the task Escaping characters
    Java Syntax, Level 3, Lesson 6
    Resolved
    HELPwhat is the problem in my code....
    • 8/27/18
    • 1989views
    • 5comments
    1
  • Luis Filipe Forra
    Level 6
    Almada
    Question about the task 2 + 3 = 5
    Java Syntax, Level 0, Lesson 8
    Under discussion
    Why my code doesn't pass the tests?!?!?!?!Don't understand why? Can anyone help me?
    • 11/15/18
    • 1338views
    • 1comment
    0
  • Mohamad
    Level 4
    Question about the task Task with percentages
    Java Syntax, Level 3, Lesson 3
    Under discussion
    Please someone help me When i run anything in the task he wouldn't run i don't know why iv'e tried to reset hem but doesn't work than iv'e tried to log out and log in again but he don't want to run..... he give me (Error An error occurred: undefined). Please help me...........
    • 11/14/18
    • 1530views
    • 2comments
    0
  • M suleman
    Level 20
    Lahore
    Question about the task Adapting multiple interfaces
    Java Core, Level 9, Lesson 3
    Under discussion
    plz help...padded with zero error? public String getPhoneNumber(){ //Integer.toString(int) String.format("%05d", yournumber); return String.format("%010",Integer.toString(this.data.getCountryPhoneCode())+Integer.toString(this.data.getPhoneNumber())); }
    • 11/14/18
    • 2324views
    • 3comments
    0
  • Kabeer Rajoria
    Level 5
    Gwalior
    Question about the task Positive number
    Java Syntax, Level 4, Lesson 7
    Under discussion
    whats wrong?note that 0 is not a positive or negative number
    • 10/30/18
    • 2129views
    • 3comments
    0
  • sathya
    Level 10
    Cedar Park
    Question about the task 2 + 3 = 5
    Java Syntax, Level 0, Lesson 8
    Under discussion
    Rejecting my answer - Not sure why (changed it)/* 2 + 3 = 5 */ public class Solution { public static void main(String[] args) { int a = 3, b = 2; // System.out.print("two"); System.out.print(b); System.out.print(" plus "); // System.out.print(" minus "); System.out.print(a); // System
    • 11/14/18
    • 1536views
    • 1comment
    0
  • KryptoBlack
    Level 7
    Mumbai
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    The output is right according to the condition but it still doesn't satisfy it.In the first for-loop, then initializes and finds the longest string and puts it at index 0. The second for-loop checks for any other smaller strings in the list and removes it then displays. The output is right according to the condition but it still doesn't satisfy it.
    • 10/28/18
    • 1861views
    • 3comments
    0
  • ozayr ahmed
    Level 11
    Paterson
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Resolved
    Getting java.util.ConcurrentModificationException as errorI've tried many things and CodeGym doesn't explain how to do this.
    • 11/13/18
    • 2332views
    • 4comments
    0
  • sathya
    Level 10
    Cedar Park
    Question about the task 2 + 3 = 5
    Java Syntax, Level 0, Lesson 8
    Under discussion
    Why is it rejecting my answerpackage com.codegym.task.task01.task0108; /* 2 + 3 = 5 */ public class Solution { public static void main(String[] args) { int a = 3, b = 2; // System.out.print("two"); System.out.print(b); System.out.print(" plus "); // System.out.print(" minus ");
    • 11/14/18
    • 1808views
    • 1comment
    0
  • Gowthami
    Level 6
    Hyderabad
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    The main method should call the Solution class's print method exactly twice. ?? Is this condition satisfied if write System.out.println(s); four times in print method ?I think there is some disconnect with 4th requirement by printing just s in print method , can someone please clarify this?
    • 11/13/18
    • 1676views
    • 3comments
    0
  • Rad
    Level 8
    Maidstone
    Question about the task Cat code won't compile
    Java Syntax, Level 7, Lesson 12
    Under discussion
    i need helpprogram is working properly but not satisfying all the conditions
    • 11/13/18
    • 1833views
    • 4comments
    0
  • Harika Yantrapragada
    Level 7
    Hyderabad
    Question about the task Implement the fight method
    Java Syntax, Level 5, Lesson 5
    Resolved
    can you help me with this code logic
    • 11/12/18
    • 1966views
    • 1comment
    0
  • 1
  • ...
  • 359
  • 360
  • 361
  • 362
  • 363
  • ...
  • 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