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
  • Deborah Wenrich
    Level 7
    Pembroke Pines
    Question about the task Time conversion
    Java Syntax, Level 3, Lesson 5
    Under discussion
    Can someone check my code?I have been going around in circles. I'm sure the problem is simple to somebody. Would someone check my code?
    • 11/15/19
    • 1163views
    • 4comments
    0
  • J_DJ
    Level 4
    Saint Louis
    Question about the task Time conversion
    Java Syntax, Level 3, Lesson 5
    Under discussion
    I typed the return statment but why does it not see the return? it says illegal start type
    • 5/5/20
    • 805views
    • 4comments
    0
  • Usman Jutt
    Level 4
    Pir Mahal
    Question about the task Time conversion
    Java Syntax, Level 3, Lesson 5
    Resolved
    help me plzi tried
    • 9/27/18
    • 3020views
    • 6comments
    0
  • amj
    Level 7
    Imphal
    Question about the task Time conversion
    Java Syntax, Level 3, Lesson 5
    Under discussion
    I could not find any solution. The condition tells me to display the result in main method. I did it but the condition tells me wrong. please help me to solve this problem
    • 7/11/20
    • 664views
    • 4comments
    0
  • Nikash Sahu
    Level 3
    Bangalore
    Question about the task Printing strings
    Java Syntax, Level 3, Lesson 5
    Under discussion
    can any1 find out where i have made mistake??public class Solution { public static void main(String[] args) { writeToConsole("Hello, World!"); } public static void writeToConsole(String s) { //write your code here String s1 ="printing:" +s; System.out.print(s1); } }
    • 11/5/18
    • 1998views
    • 4comments
    0
  • Andrei
    Level 41
    Question about the task CRUD 2
    Java Core, Level 7, Lesson 10
    Resolved
    Difference between 2 block of codeHello, I don't understand what is the difference between this block of code: case "-i": synchronized (allPeople) { for (int i = 0; i < args.length-1; i++) { person = allPeople.get(i); String newFormatBirthdate =
    • 1/8/21
    • 582views
    • 4comments
    0
  • Aryan Yadav
    Level 4
    bikaner
    Question about the task Fill a pool with water
    Java Syntax, Level 3, Lesson 5
    Under discussion
    helphow to solve his problem
    • 9/3/18
    • 2001views
    • 4comments
    0
  • Barsha
    Level 4
    Eluru
    Question about the task Product of 10 numbers
    Java Syntax, Level 3, Lesson 4
    Under discussion
    Failing the last task condition: The number does not match the task conditionspublic class Solution { public static void main(String[] args) { //write your code here int z=0; for(int i=0;i<=10;i++) { z++; z*=i; } System.out.println(z); } }
    • 7/14/20
    • 716views
    • 4comments
    0
  • Liliane Top
    Level 24
    Amsterdam
    Question about the task Tracking changes
    Java Core, Level 9, Lesson 11
    Resolved
    Why is this wrong?The feedback I get from. my mentor doesn't make sense...
    • 1/10/21
    • 770views
    • 8comments
    0
  • Manimegalai
    Level 3
    Kanchipuram
    Question about the task Task with percentages
    Java Syntax, Level 3, Lesson 3
    Under discussion
    Whats wrong in my code???public class Solution { public static double addTenPercent(int i) { double ii=i+0.9; return ii; } public static void main(String[] args) { System.out.println(addTenPercent(9)); } }
    • 9/13/18
    • 2335views
    • 5comments
    0
  • Sawankumar
    Level 1
    Question about the task Task with percentages
    Java Syntax, Level 3, Lesson 3
    Resolved
    please help me to resolve this problem..I have run this program in run tab.. same o/p is generated from my program.. till error it is displaying Why...??
    • 8/2/18
    • 2747views
    • 7comments
    0
  • Shahanshah Alam
    Level 9
    Mohali
    Question about the task Setting the number of cats
    Java Syntax, Level 4, Lesson 2
    Resolved
    help pleasei dont understand how resolve last condition
    • 9/15/18
    • 3798views
    • 6comments
    0
  • remote87
    Level 18
    Sofia
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Resolved
    Why is this not passing the last condition???I tried so many times with different inputs, every time it's right, but I can't pass the last condition. Any advice? I tried a different approach :)
    • 1/10/21
    • 720views
    • 2comments
    0
  • Liliane Top
    Level 24
    Amsterdam
    Question about the task Counting words
    Java Core, Level 9, Lesson 5
    Resolved
    What is the difference in reader.readLine() and reader.read() It seems that when you use readLine() you do not get the same as with read(). How is this possible? For example BufferedReader reader2 = new BufferedReader(new FileReader(fileName)); String line = reader2.readLine(); or BufferedReader reader2 = new BufferedReader(new FileReader(fileName)); StringB
    • 1/9/21
    • 647views
    • 10comments
    0
  • Oliver Heintz
    Level 18
    Mustang
    Question about the task OOP: Books
    Java Core, Level 5, Lesson 2
    Under discussion
    Output is correct, failing 4 requirements stillI struggled to get to this point, and it felt so good to have done it without needing help, but now, when it looks like everything is being done correctly, I can't figure it out.
    • 1/9/21
    • 589views
    • 5comments
    0
  • Liliane Top
    Level 24
    Amsterdam
    Question about the task Counting words
    Java Core, Level 9, Lesson 5
    Resolved
    What is wrong with my code?it reads words separated by punctuation marks. Hence the regex \\p{Punct} should do the trick. But I fail the test.
    • 1/9/21
    • 611views
    • 6comments
    0
  • Cristian
    Level 13
    Ploiesti
    Question about the task Vowels and consonants
    Java Syntax, Level 9, Lesson 11
    Under discussion
    I can not finish this task. Please, help me! Thank you so much!package com.codegym.task.task09.task0923; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; /* Vowels and consonants */ public class Solution { //public static char[] vowels = new char[]{'a', 'e', 'i', 'o', 'u'}; public
    • 1/9/21
    • 589views
    • 1comment
    0
  • Liliane Top
    Level 24
    Amsterdam
    Question about the task Even characters
    Java Core, Level 9, Lesson 5
    Resolved
    I do not understand how the FileReader and Filewriter return an int but how to read back the characters? I'm trying to read text from a file, copy it to another file and read it back. All I get is strange looking characters. I do not understand how the FileReader and Writer work. Can someone explain this to me please? In the books it says that FileReader and FileWriter reads and write characters but w
    • 1/9/21
    • 713views
    • 6comments
    0
  • Sindhura
    Level 15
    Delhi
    Question about the task Visitors
    Java Core, Level 2, Lesson 12
    Under discussion
    using instanceof and it was correct for all except lion and Tiger.Please helppackage com.codegym.task.task12.task1225; /* Visitors */ public class Solution { public static void main(String[] args) { System.out.println(getObjectType(new Cat())); System.out.println(getObjectType(new Tiger())); System.out.println(getObjectType(new Lion()));
    • 10/11/18
    • 3018views
    • 12comments
    0
  • LennyMan
    Level 25
    Lucca
    Resolved
    The main method's first parameter is In the last few task i seen often this requirement: The main method's first parameter is ..... I seen in some solution that corrispond at args[0], that should be the same array args that we can find in the main signature. Someone can please explain me how works with that and why i should use it
    • 1/9/21
    • 560views
    • 2comments
    0
  • Dmitri
    Level 22
    Seversk
    Question about the task Transactionality
    Java Core, Level 7, Lesson 10
    Resolved
    The code is quite obvious and works ok.The code is quite obvious and works ok. Why it does not pass?
    • 1/9/21
    • 520views
    • 2comments
    0
  • Liliane Top
    Level 24
    Amsterdam
    Question about the task Adapting multiple interfaces
    Java Core, Level 9, Lesson 3
    Resolved
    What is wrong?I might not understand the requirements correctly but I understand that the phone number must be returned in the following format: // For example: +1(099)123-45-67 What am I missing?
    • 1/9/21
    • 801views
    • 2comments
    0
  • June Sung Park
    Level 41
    Yangp'yong
    Question about the task Again, POST, not GET
    Java Collections, Level 10, Lesson 4
    Under discussion
    Can't pass the third conditionPlease help.
    • 9/10/20
    • 637views
    • 1comment
    2
  • crispr_cast9
    Level 9
    Saint Petersburg
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Under discussion
    Hello,everyone. Can somebody help me?🦝 com/codegym/task/task03/task0318/Solution.java:40: error: cannot find symbol public static String getString()throws MyException{ ^ symbol: class MyException location: class com.codegym.task.task03.task0318.Solution.InString
    • 1/8/21
    • 1007views
    • 5comments
    0
  • Gellert Varga
    Level 23
    Szekesfehervar
    Resolved
    Question about inherited private variable public static class DomesticAnimal { private int weight; private int age; public int getWeight() { return this.weight; } } public static class Chicken extends DomesticAnimal { public int wings; public void
    • 1/8/21
    • 844views
    • 4comments
    0
  • Nandeesh S Bagewadi
    Level 2
    Bangalore
    Question about the task Part of a calculator
    Java Syntax, Level 2, Lesson 2
    Resolved
    Answer plzAnswer plz
    • 8/20/18
    • 3017views
    • 12comments
    1
  • LennyMan
    Level 25
    Lucca
    Question about the task Counting words
    Java Core, Level 9, Lesson 5
    Resolved
    The output its correct but dont pass the validationThe output its correct but dont pass the validation This is my .txt file where i tested it: ____________________________________________________________________ world Text in file world aaaa bbb world world ciao.world ______________________________________________________________________ The ou
    • 1/8/21
    • 597views
    • 2comments
    0
  • Kent Hervey
    Level 19
    Question about the task Sorting even numbers from a file
    Java Core, Level 3, Lesson 11
    Under discussion
    Is Java 8 Streams allowed?Just starting. Although a challenge for me, I want to consider using Java 8 feature such as streams. I wonder if that is allowed??
    • 1/7/21
    • 439views
    • 1comment
    0
  • Jake Jacobs
    Level 2
    Almaty
    Under discussion
    Where I get wrong? package readability; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String word = sc.nextLine(); String[] nums = word.split(" "); //System.out.println(nums.length); // tot
    • 6/4/20
    • 603views
    • 1comment
    0
  • Mahmud Foysal
    Level 1
    Dhaka
    Under discussion
    Language SettingsCan I change my language settings again? If yes, then how? please explain
    • 6/5/20
    • 674views
    • 0comments
    0
  • 1
  • ...
  • 100
  • 101
  • 102
  • 103
  • 104
  • ...
  • 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