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
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task Sorting even numbers from a file
    Java Core, Level 3, Lesson 11
    Archived
    What is wrong here?need hint
    • 08.02.2019
    • 1591views
    • 3comments
    0
  • Sumit
    Level 2
    Delhi
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Under discussion
    why my code is not verifying?why my code is not verifying?
    • 08.02.2019
    • 1276views
    • 3comments
    0
  • Sasha
    Level 20
    Novi Sad
    Question about the task Clew
    Java Core, Level 6, Lesson 13
    Resolved
    Some Help?The task verification request was not completed correctly. Be sure you have a network connection and try again.
    • 23.01.2019
    • 1899views
    • 7comments
    0
  • Vijay Rangan
    Level 5
    Jakarta
    Question about the task Getters and setters for the Dog class
    Java Syntax, Level 5, Lesson 5
    Under discussion
    why it is showing errorpackage com.codegym.task.task05.task0503; /* Getters and setters for the Dog class */ public class Dog { //write your code here public String name; public int age; public String getName() { return name; } public String setName(String name) { this.name = name; }
    • 13.01.2019
    • 1539views
    • 3comments
    0
  • Vartaman Ingole
    Level 6
    Wardha
    Question about the task Creating a cat
    Java Syntax, Level 5, Lesson 5
    Under discussion
    What is the error here?? Cat cat = new Cat(); String name; int age; int weight; int strength;
    • 28.11.2018
    • 1775views
    • 3comments
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task Reading a file
    Java Core, Level 3, Lesson 11
    Archived
    Why in line 22 it has to be System.out.print((char)a) instead of System.out.print(a)? Why in line 22 it has to be System.out.print((char)a) instead of System.out.print(a)? If i did System.out.print(a) it apeared
    • 07.02.2019
    • 1967views
    • 7comments
    0
  • jaime
    Level 5
    Barcelona
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 7
    Resolved
    dont understad the error. dont understad the error.
    • 07.02.2019
    • 2037views
    • 1comment
    0
  • Joyonta Saha
    Level 31
    Question about the task OOP: Fix inheritance problems
    Java Core, Level 5, Lesson 2
    Resolved
    Any Hints!Need Help!
    • 28.09.2018
    • 1868views
    • 6comments
    0
  • Alex Balandinos
    Level 18
    Lusaka
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Resolved
    Y'all the code for "the triangle is not possible" is not working some help would be cool...
    • 07.02.2019
    • 1831views
    • 5comments
    0
  • Jerry
    Level 1
    Cape Town
    Under discussion
    lesson 8Im strugggling to get a solution to lesson 8, level 0 - can anyone assist please.....
    • 07.02.2019
    • 1019views
    • 1comment
    0
  • hidden #10424566
    Level 7
    Question about the task Number of days in the year
    Java Syntax, Level 4, Lesson 4
    Resolved
    I keep getting this error yet i think i've done per the instructions: If the entered year is not a leap year, you should display: "Number of days in the year: 365"I keep getting this error yet i think i've done per the instructions: If the entered year is not a leap year, you should display: "Number of days in the year: 365"
    • 07.02.2019
    • 2413views
    • 2comments
    0
  • Dedcom
    Level 19
    Lahore
    Question about the task Exception invasion
    Java Core, Level 4, Lesson 8
    Resolved
    whats the problem here?how to add exceptions to arraylist?
    • 03.02.2019
    • 1926views
    • 3comments
    1
  • lordheraldor
    Level 23
    Newark
    Question about the task Task about algorithms
    Java Syntax, Level 9, Lesson 11
    Resolved
    Is anyone getting stuck trying to run the program?I keep trying to run my program to see if I got the code to run as the solution demands but I keep running into a point where I can enter in blank space and the while loop doesn't terminate and main doesn't move on. What's especially baffling is that I haven't touched main. package com.codegym.tas
    • 05.02.2019
    • 1987views
    • 9comments
    0
  • Carlos
    Level 3
    Barcelona
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    I cant really understand why this worked....can you explain why?In this part public static int min(int a, int b, int c, int d) { i copied from someone else in another question to solve it return min(min (a, b), min (c,d)); obviously the min (a,b) part i made was the classical previous examples we already did int m2; if (a
    • 05.02.2019
    • 1647views
    • 8comments
    0
  • 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
    • 06.02.2019
    • 1737views
    • 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?
    • 06.02.2019
    • 1608views
    • 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
    • 03.10.2018
    • 1978views
    • 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?
    • 03.02.2019
    • 1724views
    • 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
    • 30.01.2019
    • 1972views
    • 12comments
    1
  • Raisa Toscano
    Level 22
    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
    • 26.01.2019
    • 1799views
    • 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
    • 16.10.2018
    • 2015views
    • 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(
    • 29.10.2018
    • 1454views
    • 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
    • 05.02.2019
    • 1411views
    • 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
    • 27.09.2018
    • 1733views
    • 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.....
    • 05.02.2019
    • 1734views
    • 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
    • 27.12.2018
    • 1835views
    • 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.
    • 04.02.2019
    • 1548views
    • 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
    • 05.02.2019
    • 1402views
    • 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
    • 05.02.2019
    • 1426views
    • 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?
    • 02.02.2019
    • 1653views
    • 2comments
    0
  • 1
  • ...
  • 344
  • 345
  • 346
  • 347
  • 348
  • ...
  • 371
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