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
  • Angeget
    Level 22
    Potsdam
    Question about the task Most frequent bytes
    Java Core, Level 8, Lesson 3
    Resolved
    What i am doing wrong? HELP HELP PLEASE!!What i am doing wrong? HELP HELP PLEASE!!
    • 18.02.2019
    • 2079views
    • 10comments
    2
  • Nico
    Level 16
    Bellevue
    Under discussion
    Can't go through the test even though it runs correctlyThe following condition is not met even though the program runs correctly. The displayClosestToTen method should display a number on the screen in accordance with the task conditions. public static void displayClosestToTen(int a, int b) { // write your code here int a1 = abs(a
    • 22.09.2019
    • 834views
    • 1comment
    0
  • Satya Vath
    Level 31
    Vijayawada
    Question about the task Space Invaders (Part 28/34)
    Games, Level 0, Lesson 6
    Under discussion
    Help MePlease Help
    • 07.10.2019
    • 924views
    • 2comments
    0
  • JavaJavaJava
    Level 3
    Question about the task Where does a Person come from?
    Java Syntax, Level 2, Lesson 2
    Resolved
    what is the error in this code? please help.public class Solution { public static void main(String[] args) { Person Person=new Person (); } public static class Person { String name; int age; int weight; int money; } }
    • 06.05.2019
    • 1692views
    • 10comments
    0
  • jorge ives murillo paredes
    Level 40
    New York City
    Question about the task Clew
    Java Core, Level 6, Lesson 13
    Under discussion
    Can somebody from codegym explain why stop works and interrupt doesnt package com.codegym.task.task16.task1632; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; public class Solution { public static List threads = new ArrayList<>(5); static {
    • 08.10.2019
    • 1148views
    • 1comment
    0
  • Anonymous #10438472
    Level 1
    Question about the task Introducing tags
    Java Core, Level 9, Lesson 11
    Under discussion
    What is wrong? The code gives expected result but do not pass the testPlease, could somebody check what I am missing here? The code gives result as in the example but do not pass the testing :(
    • 06.10.2019
    • 1232views
    • 4comments
    0
  • Satya Vath
    Level 31
    Vijayawada
    Question about the task Space Invaders (Part 26/34)
    Games, Level 0, Lesson 6
    Under discussion
    Please Help MeI Cant Understand Where I went Wrong
    • 07.10.2019
    • 1083views
    • 10comments
    0
  • Leo
    Level 3
    Question about the task Parenthetical brainteaser
    Java Syntax, Level 3, Lesson 4
    Under discussion
    Please help...Someone please help with this question. I have tried countless different patterns to try and output 382 but I have yet to succeed. I understand PEMDAS and the order of operations but I would really like to move one and continue learning. Could someone please help and explain. I appreciate any comme
    • 09.09.2019
    • 1902views
    • 7comments
    0
  • Gábor
    Level 14
    Budapest
    Question about the task In decreasing order
    Java Syntax, Level 7, Lesson 12
    Under discussion
    addig the right code to the sort method killing all the other Requirements:How does these lines of codes (int the sort method) effect the first req... don't understand pls help :) int temp = Integer.MIN_VALUE; for (int i = 0; i<20; i++){ for (int j = i + 1; i<20; j++){ if (array[i] < array[j]){ temp = arra
    • 23.09.2019
    • 1090views
    • 1comment
    0
  • phis
    Level 12
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Under discussion
    Try too many times,but still cannot solve this problemIt seems get the right answer, but cannot fulfill the last requirement.
    • 24.09.2019
    • 1030views
    • 1comment
    0
  • Naveen Muralidoss
    Level 9
    Newark
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Under discussion
    not sure what's wrongpackage com.codegym.task.task08.task0816; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.*; /* Kind Emma and the summer holidays */ public class Solution { public static HashMap createMap() throws ParseException { Da
    • 04.10.2019
    • 1136views
    • 2comments
    0
  • coder_here
    Level 13
    Hyderabad
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Resolved
    I'm stuck!!Can anyone help me sort this mess? Couldn't compile the code and satisfy the last condition...
    • 29.07.2019
    • 1271views
    • 2comments
    0
  • Clarendon lee
    Level 8
    Baltimore
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 4
    Archived
    Task no met Verify said : task is no met ! What's my code wrong Thanks a lot?
    • 06.10.2019
    • 1120views
    • 1comment
    0
  • Alexandru Ovcinicov
    Level 15
    London
    Question about the task Bridges
    Java Core, Level 4, Lesson 8
    Under discussion
    People, please explain what is the difference if i put/orNot a "public" accesor before printl(Bridge bridge) method? public class Solution { public static void main(String[] args) { println(new WaterBridge()); println(new SuspensionBridge()); } // Add println method here public static void println(Bridge bridge){ System.out.println(bridge.getCarsCount()); } }
    • 06.10.2019
    • 1478views
    • 2comments
    0
  • fifi deng
    Level 22
    Paris
    Question about the task Display numbers in reverse order
    Java Syntax, Level 7, Lesson 12
    Under discussion
    pls ,ask for a helpmarch pas
    • 05.10.2019
    • 979views
    • 2comments
    0
  • Yash
    Level 15
    Sugar Hill
    Question about the task Vowels and consonants
    Java Syntax, Level 9, Lesson 11
    Resolved
    Why Not WorkThe output is correct but verification fails.
    • 06.10.2019
    • 1162views
    • 1comment
    0
  • Clarendon lee
    Level 8
    Baltimore
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Question Why. Verify the result say " Task requirements are not met "? Thanks a lot! I have changed my code, but say no met yet ?
    • 05.10.2019
    • 1180views
    • 5comments
    0
  • Dominik
    Level 1
    Question about the task ConsoleReader class
    Java Syntax, Level 6, Lesson 8
    Resolved
    Why it doesn't workWhy this code doesn't work? I checked it, and it return right values, but verification all the time shows every requirements are not fulfil "The readString method must read and return a String." "The readInt method must read and return an int." etc.
    • 05.10.2019
    • 1983views
    • 2comments
    0
  • Yash
    Level 15
    Sugar Hill
    Question about the task Catching custom exceptions
    Java Syntax, Level 9, Lesson 8
    Resolved
    Not SureUnable to understand what I did wrong.
    • 05.10.2019
    • 1621views
    • 1comment
    0
  • Vivek Dhull
    Level 25
    Mumbai
    Question about the task Justice
    Java Core, Level 6, Lesson 5
    Under discussion
    How to fix this one?Help me out plz!
    • 22.06.2019
    • 969views
    • 1comment
    0
  • Gábor
    Level 14
    Budapest
    Question about the task Shuffled just in time
    Java Syntax, Level 7, Lesson 12
    Under discussion
    what is the difference between the two code? If I am using the code in the comments it's not filling the requirments. but with buffered reader it is working What am I missing from the code in the comment? Code in the comment! Thank in advance :)
    • 21.09.2019
    • 1369views
    • 3comments
    0
  • Mithilesh Kumar Chaurasiya
    Level 1
    Bangalore
    Question about the task Minesweeper (Part 7/16)
    Games, Level 0, Lesson 0
    Under discussion
    Not passing test How can i resolve these problem
    • 24.08.2019
    • 912views
    • 1comment
    0
  • Oleg Tokarenko
    Level 19
    L'viv
    Question about the task Request parser
    Java Core, Level 5, Lesson 12
    Resolved
    Can someone explain what might be wrong with the code? This particular section: for (String line : arrOfStr) { if (line.contains("=")) { try { double d = Double.parseDouble(line.substring(line.indexOf('=') + 1)); if (d % 1 == 0) break; alert(d); b
    • 23.05.2019
    • 1474views
    • 2comments
    2
  • Arjun Kiruthivasan
    Level 14
    Chennai
    Question about the task Minimum and Maximum
    Java Core, Level 1, Lesson 11
    Under discussion
    where am i wrong??somebody pls clarify my doubt
    • 04.10.2018
    • 1595views
    • 2comments
    0
  • Luis Rodriguez Ugarte
    Level 22
    Chatillon-sur-Chalaronne
    Question about the task Five winners
    Java Syntax, Level 8, Lesson 11
    Resolved
    Problem with sort methodsWhen i debug sort method, array algorithm is working good. It's getting the values from the highest to the lowest but when it back to the main method the array value back with the original values.. Any ideas?
    • 25.09.2019
    • 1520views
    • 8comments
    0
  • Zbigniew
    Level 23
    Dabrowa Tarnowska
    Question about the task Sequential file output
    Java Core, Level 6, Lesson 13
    Resolved
    I don't understand the recommendationCould you explain what the following recommendation from mentor means: "Be sure that the getFileContents method returns an empty string if the run method has not been started."? What should I change in my code? I've tried this, but it doesn't work: public String getFileContents(){ if
    • 20.04.2019
    • 1608views
    • 5comments
    0
  • Clarendon lee
    Level 8
    Baltimore
    Question about the task Seasons on Terra
    Java Syntax, Level 4, Lesson 4
    Resolved
    Question What's my code wrong ? Thanks a lot!
    • 04.10.2019
    • 1419views
    • 2comments
    0
  • // Java Poser
    Level 18
    Cincinnati
    Question about the task SimpleObject interface
    Java Core, Level 3, Lesson 11
    Under discussion
    Not sure what I am supposed to do here. confused by the T symbol public class Solution { public static void main(String[] args) throws Exception { SimpleObject stringObject = new StringObject(); } interface SimpleObject { SimpleObject getInstance(); } //thrown off by the what does this mean?? //and how am i supposed to c
    • 10.04.2019
    • 1540views
    • 2comments
    2
  • Adnan Razzaq
    Level 15
    Bamberg
    Under discussion
    break statement confusion. why the line after that is being read. can some one explain? 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
    • 24.09.2019
    • 899views
    • 1comment
    1
  • lexter
    Level 16
    New York
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    this is working on my ide but still requirements 3 and 4 are not met. feedback pls
    • 25.09.2019
    • 891views
    • 1comment
    0
  • 1
  • ...
  • 272
  • 273
  • 274
  • 275
  • 276
  • ...
  • 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