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
  • Ramilya
    Level 20
    SPb
    Question about the task Console-based piggy bank
    Java Syntax, Level 5, Lesson 12
    Resolved
    What's wrong in my code?Error: java.lang.NumberFormatException: Solution.java, method main, line: 19 Error converting a string to a number (invalid format). package com.codegym.task.task05.task0529; import java.io.BufferedReader; import java.io.InputStreamReader; /* Console-based piggy bank */ public class Solutio
    • 2/6/19
    • 1922views
    • 2comments
    0
  • Akash sah
    Level 8
    Kathmandu
    Question about the task Calculate the circumference of a circle
    Java Syntax, Level 2, Lesson 2
    Under discussion
    what is wrong with this code?what should be the solution of this problem?
    • 2/6/19
    • 1761views
    • 1comment
    0
  • Nehal Abubakar
    Level 7
    Karachi
    Question about the task Streets and houses
    Java Syntax, Level 7, Lesson 4
    Archived
    Can someone help me out plzzzzzplzzzzzzzzz
    • 10/3/18
    • 2120views
    • 6comments
    1
  • jim smith
    Level 22
    Cedar Park
    Question about the task Replacing numbers
    Java Core, Level 9, Lesson 11
    Archived
    Verification failsI would guess they have some other weird condition to appease like the ending "." that needs to be accounted for but not in the example file data. Anyone know what it is so I can add it?
    • 2/3/19
    • 1856views
    • 5comments
    0
  • Andrew
    Level 29
    Seattle
    Question about the task Chicken factory
    Java Core, Level 4, Lesson 6
    Resolved
    Frustrated with the getDescription() verificationI've been trying all kinds of combinations from other posts for over 30 minutes now and still can't get it to verify. This is a poorly written exercise. Tried with/without a space after super.getDescription(). Tried hardcoding the country and using Contintent.<country name>; tried with NorthA
    • 1/30/19
    • 2168views
    • 12comments
    1
  • Raisa Toscano
    Level 27
    Tepic
    Question about the task Exception invasion
    Java Core, Level 4, Lesson 8
    Resolved
    why can't i add the expetions to the list? private static void initExceptions() { // The first exception try { float i = 1 / 0; } //write your code catch (TypeNotPresentException e){ exceptions.add(e); } catch (SecurityException e){ exceptions.ad
    • 1/26/19
    • 1957views
    • 2comments
    0
  • Sindhura
    Level 15
    Delhi
    Question about the task Janitorial services
    Java Core, Level 4, Lesson 8
    Under discussion
    whats the problem with this..Not verifying b:(package com.codegym.task.task14.task1415; import java.util.ArrayList; import java.util.List; /* Janitorial services */ public class Solution { public static void main(String[] args) { List apartments = new ArrayList<>(); apartments.add(new OneRoomApt()); apartm
    • 10/16/18
    • 2196views
    • 6comments
    1
  • M suleman
    Level 20
    Lahore
    Question about the task Janitorial services
    Java Core, Level 4, Lesson 8
    Under discussion
    not verify package com.codegym.task.task14.task1415; import java.util.ArrayList; import java.util.List; /* Janitorial services */ public class Solution { public static void main(String[] args) { List<Apartment> apartments = new ArrayList<>(); apartments.add(new OneRoomApt(
    • 10/29/18
    • 1598views
    • 2comments
    0
  • shaan mohd khan
    Level 13
    Jhansi
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Under discussion
    what's wrong in my code...package com.codegym.task.task07.task0712; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; /* Shortest or longest */ public class Solution { public static void main(String[] args) throws Exce
    • 2/5/19
    • 1577views
    • 2comments
    0
  • Yusra Ansari
    Level 9
    Karachi
    Question about the task The end
    Java Syntax, Level 7, Lesson 12
    Under discussion
    Can someone help?package com.codegym.task.task07.task0722; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; /* The end */ public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader
    • 9/27/18
    • 1855views
    • 6comments
    0
  • Alex Balandinos
    Level 18
    Lusaka
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 4
    Archived
    Hey y'all ? I don't understand the code to make the number double if it's postive.....
    • 2/5/19
    • 1948views
    • 7comments
    0
  • Jyothi
    Level 20
    Question about the task Shuffled just in time
    Java Syntax, Level 7, Lesson 12
    Resolved
    Verify fails for moving m strings.Please advise. Screen output from the program (System.out) In Spain Stays Mainly The Rain Input data (System.in) 6 2 The Rain In Spain Stays Mainly
    • 12/27/18
    • 1966views
    • 3comments
    0
  • Naina Sahu
    Level 4
    Mumbai
    Question about the task Multiplication table
    Java Syntax, Level 3, Lesson 6
    Under discussion
    Helpwhat's the mistake in this code. Using while loop.
    • 2/4/19
    • 1688views
    • 5comments
    0
  • Tapan Kumar
    Level 8
    Question about the task The basis of a wheel
    Java Syntax, Level 5, Lesson 9
    Under discussion
    why is it failed?Don't know
    • 2/5/19
    • 1531views
    • 1comment
    0
  • Tapan Kumar
    Level 8
    Question about the task Walking in circles
    Java Syntax, Level 5, Lesson 9
    Under discussion
    Don't undrstand why it is failed ?Help
    • 2/5/19
    • 1581views
    • 1comment
    0
  • Fadi AlSaidi
    Level 13
    Carrollton
    Question about the task Task about algorithms
    Java Syntax, Level 9, Lesson 11
    Resolved
    words in Ascending orderI am getting the required results per the example provided, but still failing the "The displayed words should be sorted in ascending order (using the provided isGreaterThan method)" !!! any words of advice?
    • 2/2/19
    • 1815views
    • 2comments
    0
  • hidden #10424566
    Level 7
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    Kindly please help me understand this challenge i have tried many methods yet nothing workspackage 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 m3=min(a,b); int minValue; int m1; if(c
    • 2/4/19
    • 1728views
    • 8comments
    0
  • Dmitriy Konoplev
    Level 11
    Khabarovsk
    Question about the task Going national
    Java Syntax, Level 8, Lesson 11
    Archived
    What about the space at the end?I solved this task this way: char[] list = s.toCharArray(); for (int i = 0; i < list.length; i++) { list[0] = Character.toUpperCase(list[0]); String n = String.valueOf(list[i]); if (n.equals(" ")) list[i+1] = Character.toU
    • 2/4/19
    • 1354views
    • 3comments
    0
  • Aayush vyas
    Level 2
    Bangalore
    Question about the task Our first converter!
    Java Syntax, Level 2, Lesson 2
    Under discussion
    solution of convert to celsius to farenheitpublic class Solution { public static void main(String[] args) { System.out.println(convertCelsiusToFahrenheit(41)); } public static double convertCelsiusToFahrenheit(int celsius) { //write your code here double cel=celsius; double Fahrenheit = cel * 9/5 + 3
    • 2/3/19
    • 1643views
    • 1comment
    0
  • Jane
    Level 3
    Cape Town
    Resolved
    IntelliJ 2018.3.4 Homework Plugin Install HELP (Windows 10)Is there anyone who can help me figure out why I don't see the task options after I installed the plugin and restarted IJ? I don't see the 6 buttons, running version 2018.3.4. Running windows 10 64-bit can see here in the screenshot that the plugin is enabled: But on startup there are no 6 but
    • 1/31/19
    • 1907views
    • 4comments
    0
  • bri
    Level 7
    Sevilla
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Under discussion
    It keeps telling me I have an issue in line 10 - not sure what the issue is.It keeps telling me I have an issue in line 10 - not sure what the issue is - I am using intelliJ
    • 2/3/19
    • 1535views
    • 3comments
    0
  • shaan mohd khan
    Level 13
    Jhansi
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    code running right.but not verifying.help me asap public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int maximum=0; //write your code here ArrayList data=new ArrayList<>(); int i;int n=0;
    • 2/2/19
    • 1721views
    • 5comments
    0
  • Usha Mathivanan
    Level 15
    CHENNAI
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Under discussion
    error : line 19 : 'else' without 'if' , Please help me to resolve this error... !!! package com.codegym.task.task04.task0409; /* Closest to 10 */ public class Solution { public static void main(String[] args) { displayClosestToTen(8, 11); displayClosestToTen(7, 14); } public static void displayClosestToTen(int a, int b) { int num1 = abs(10
    • 2/2/19
    • 1622views
    • 3comments
    0
  • Balasca Andrei
    Level 7
    Iasi
    Question about the task Controlling body weight
    Java Syntax, Level 6, Lesson 8
    Resolved
    do not understandcan someone tell me if there is a problem in the code or it is a BUG?? thx
    • 2/3/19
    • 2121views
    • 2comments
    0
  • Rishi Ghatta
    Level 2
    Miller Place
    Question about the task One cat isn't enough
    Java Syntax, Level 2, Lesson 3
    Under discussion
    I don't know how to complete this Help!!how do i do this at all
    • 11/6/18
    • 1823views
    • 6comments
    0
  • Kshitij Pimple
    Level 2
    Mumbai
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    what will be the output and please explain also?Implement the print method In the print method, display the passed string 4 times. Each time, on a new line. Requirements: 1. The program should display text on the screen. 2. The main method should not call System.out.println or System.out.print. 3. The print method should display the text on the
    • 2/3/19
    • 1875views
    • 3comments
    0
  • Dilip Sahu
    Level 2
    Mumbai
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    check please what's wrong?Last condition is not applying.
    • 1/31/19
    • 1506views
    • 4comments
    0
  • lordheraldor
    Level 23
    Newark
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Resolved
    Produces the correct result but still getting an error.Did I make a typo or something or is my code have an issue that I'm oblivious to?
    • 1/28/19
    • 1516views
    • 6comments
    0
  • Jeff Jeffy
    Level 15
    Irvine
    Question about the task Time conversion
    Java Syntax, Level 3, Lesson 5
    Resolved
    Why wont the compiler accept it?This is my code: package com.codegym.task.task03.task0312; /* Time conversion */ public class Solution { //write your code here public static int convertToSeconds(int hour){ return hour*60*60; } } public static void main(String[] args) { //write your code her
    • 1/21/19
    • 2306views
    • 2comments
    0
  • Jeff Jeffy
    Level 15
    Irvine
    Resolved
    I do think my code should be returning the correct answer, but, it wont verify.:( Please help. All but the last conditions are met.
    • 1/7/19
    • 1354views
    • 4comments
    0
  • 1
  • ...
  • 347
  • 348
  • 349
  • 350
  • 351
  • ...
  • 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