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
  • Davedabull
    Level 22
    New York City
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    But I am already showing the longest string?Can someone help me find out what I did wrong here?
    • 18.11.2019
    • 1298views
    • 9comments
    0
  • Alexander Shtunder
    Level 41
    San Francisco
    Question about the task Prices 2
    Java Core, Level 8, Lesson 11
    Resolved
    Hm, do not pass by, but help...My code works flawlessly. I checked it on my computer 100500+ times. But the test does not want to pass ... strange. Who will say why?
    • 26.08.2019
    • 1057views
    • 5comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Exception when working with Map collections
    Java Syntax, Level 9, Lesson 6
    Resolved
    Please helpThe program works with the output: "NullPointerException null", but the third requirement is still not validating. Is there a specific type of NullPointerException for Maps?
    • 18.11.2019
    • 1336views
    • 7comments
    0
  • Deborah Wenrich
    Level 7
    Pembroke Pines
    Question about the task Financial expectations
    Java Syntax, Level 3, Lesson 12
    Under discussion
    Can someone check my code?I'm not sure what the problem is. The compiler doesn't seem to like the BufferedReader code.
    • 12.11.2019
    • 1181views
    • 2comments
    0
  • Carlos Cortázar
    Level 17
    Madrid
    Under discussion
    please, why this code doesn't compile?package com.company; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.ArrayList; public class Main { public static void main(String[] args) throws IOException { MyClass myObject = new MyClass(); OutputStream outStream
    • 18.11.2019
    • 852views
    • 2comments
    0
  • Lukasz
    Level 14
    Wrocław
    Question about the task Ten cats
    Java Syntax, Level 9, Lesson 11
    Under discussion
    Where is problem?I pass the data from Map to Set
    • 25.01.2019
    • 1576views
    • 2comments
    1
  • towelie8
    Level 16
    Darmstadt
    Question about the task One large array and two small ones
    Java Syntax, Level 7, Lesson 4
    Under discussion
    Last condition?!meow.
    • 18.11.2019
    • 844views
    • 1comment
    0
  • chinchillo
    Level 6
    Question about the task Number of days in the year
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Guess it's right but still not sure.Any idea whats the problem here?
    • 17.11.2019
    • 782views
    • 2comments
    0
  • nikhil singla
    Level 9
    Chandigarh
    Question about the task Static cats
    Java Syntax, Level 6, Lesson 11
    Archived
    I am not able to figure out what to print here in printCatS()..? Please help me..public static void printCats() { System.out.println(cats); } // What's wrong with this? Please watch my solution..
    • 21.07.2019
    • 1293views
    • 2comments
    2
  • Davedabull
    Level 22
    New York City
    Question about the task StringHelper class
    Java Syntax, Level 6, Lesson 8
    Under discussion
    So I guess we cannot use the str.repeat(times) methodpublic class practice3_string_multiplication { public static String multiply(String s) { String result = ""; //write your code here result = s.repeat(5); return result; } public static String multiply(String s, int count) { String result = "";
    • 17.11.2019
    • 1303views
    • 4comments
    0
  • Nico
    Level 17
    Tyrol
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Under discussion
    I think, the output is correct, but i failed the last task, and i dont know why. Thanks for your help in advance! :)Failed: "The displayClosestToTen method should display a number on the screen in accordance with the task conditions."
    • 17.11.2019
    • 774views
    • 2comments
    0
  • Neha Anjum
    Level 6
    Hyderabad
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    .....?????import java.util.Scanner; import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.ne
    • 17.09.2018
    • 1630views
    • 4comments
    0
  • Tian Pro
    Level 23
    Cape Town
    Question about the task Adding
    Java Syntax, Level 4, Lesson 16
    Under discussion
    Why doesnt it work if the output shows it works? Im so confused :'D
    • 07.11.2019
    • 890views
    • 2comments
    0
  • Maria
    Level 7
    Berlin
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    Help please??What is wrong in my solution?? Thank you :D
    • 17.11.2019
    • 1061views
    • 2comments
    0
  • Manish Sinha
    Level 1
    london
    Question about the task HashMap of 10 pairs
    Java Syntax, Level 8, Lesson 3
    Resolved
    my code throws error dont know what is the issue. Intellij shows the correct output.package com.codegym.task.task08.task0802; /* HashMap of 10 pairs */ import java.util.HashMap; import java.util.Map; public class Solution { public static void main(String[] args) throws Exception { HashMap hasmap = new HashMap<>(); hasmap.put("watermelon","melon");
    • 17.11.2019
    • 1088views
    • 1comment
    0
  • Ankita Patra
    Level 5
    Bhubaneshwar
    Question about the task Initializing cats
    Java Syntax, Level 5, Lesson 7
    Under discussion
    Everything looks fine.Still don't know what's wrong here!!
    • 05.07.2019
    • 1273views
    • 3comments
    0
  • Stanislav Mayer
    Level 15
    Question about the task Family relations
    Java Syntax, Level 2, Lesson 2
    Resolved
    Separate file for each classIn one of the previous tasks, there was the following info provided: For each class, a separate file is created. The name of the file matches the name of the class. However, in this particular exercise, I can see three different classes: Solution, Man and Woman within one file. Can you please ex
    • 05.08.2019
    • 1248views
    • 2comments
    0
  • jawad
    Level 10
    Lahore
    Question about the task Family relations
    Java Syntax, Level 2, Lesson 2
    Under discussion
    what wrong in my codewhats worng in my code
    • 02.08.2019
    • 1071views
    • 2comments
    0
  • Pooja Gujjer
    Level 2
    Mumbai
    Question about the task Family relations
    Java Syntax, Level 2, Lesson 2
    Under discussion
    What is wrong with my code I cant understand?? Plzz help
    • 15.06.2019
    • 1387views
    • 7comments
    0
  • Ilia Kalugin
    Level 25
    Novara
    Question about the task You can't have too much of a good thing
    Java Syntax, Level 4, Lesson 10
    Under discussion
    I don't understand. Where here an error?what's wrong with it?
    • 16.11.2019
    • 989views
    • 2comments
    0
  • Wei Cui
    Level 39
    Newark
    Question about the task What's in the folder?
    Java Collections, Level 1, Lesson 4
    Resolved
    help to solve problem I test the code and meet the goal. display the directory number, file number and size. where wrong?
    • 13.11.2019
    • 1267views
    • 3comments
    0
  • null
    Level 13
    Question about the task Correct inheritance chain: part 5
    Java Core, Level 1, Lesson 11
    Resolved
    The title may not appear completely on the page It doesn't specify who inherits who. but in the Android app,it has hits.
    • 16.11.2019
    • 1386views
    • 1comment
    0
  • Marcin
    Level 9
    Birmingham
    Under discussion
    Exception Quest.QUEST_JAVA_SYNTAX_PLHi, I have a problem with using intelij plugin. Here is the exception: ava.lang.IllegalArgumentException: No enum constant com.homework.plugin.dialog.TheNewTaskChooserDialog.Quest.QUEST_JAVA_SYNTAX_PL at java.base/java.lang.Enum.valueOf(Enum.java:240) Could you please, help me with this. Regards,
    • 11.11.2019
    • 1160views
    • 4comments
    0
  • Patson
    Level 4
    Kampala
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    PLEASE.. how do I use the second min(int a, int b) in the first min(int a, int b, int c, int d) 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 m; if (a <= b && a <= c && a <= d) m = a; else if (b <= a &
    • 03.11.2018
    • 3830views
    • 7comments
    0
  • sabrine RA
    Level 12
    Paris
    Under discussion
    Connecting IntelliJ IDEA ERROR Plugins
    • 14.11.2019
    • 1112views
    • 4comments
    0
  • Krunoslav Krainović
    Level 16
    Question about the task Let's talk music
    Java Core, Level 6, Lesson 3
    Resolved
    Why does this not work with System.nanoTime(); long startTime = System.nanoTime(); startPlaying(); sleepNSeconds(1); stopPlaying(); long endTime = System.nanoTime(); long totalTime = endTime - startTime; System.out.println(totalTime / 1000000); it does not want
    • 16.11.2019
    • 1825views
    • 5comments
    0
  • 唐浩文
    Level 2
    San Jose
    Under discussion
    please use Java programming language to answer these questions
    • 16.11.2019
    • 982views
    • 1comment
    0
  • Miha Čelešnik
    Level 9
    Ilirska Bistrica
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    Why verification fails?Hello I would like to report a bug in task0708. It seems that verification is broken. After program reads from input, it takes first string from list as longest and stores it in list of max strings, enters loop at second position. If next string is longer, max list resets and next string gets stor
    • 16.11.2019
    • 1045views
    • 1comment
    0
  • hidden #10515202
    Level 20
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    solutionin print method: add this 4 times, it works System.out.println(s); System.out.println(s); System.out.println(s); System.out.println(s);
    • 10.11.2019
    • 1251views
    • 1comment
    0
  • Satya Vath
    Level 31
    Vijayawada
    Question about the task AmigoOutputStream
    Java Core, Level 8, Lesson 8
    Under discussion
    Please HelpWhere is the Problem
    • 19.04.2019
    • 1591views
    • 5comments
    2
  • 1
  • ...
  • 255
  • 256
  • 257
  • 258
  • 259
  • ...
  • 372
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