CodeGym
Promotion
CodeGym University
Java FullStack
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
  • Revathy S
    Level 4
    trivandrum
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Under discussion
    pls helpimport java.io.*; import java.util.*;
    • 10/18/19
    • 1319views
    • 2comments
    0
  • Anonymous #10011987
    Level 16
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Under discussion
    Unable to get correct answer for Longest Sequence program using ArrayListI am not able to get a correct solution for my current code. I am using the easiest possible solution for the given problem, using an ArrayList. Thanks in advance. Error: It is telling me to check if my code works for numbers > 127, or not. But I have already set the data type as Integer. It's r
    • 10/17/19
    • 1344views
    • 5comments
    0
  • Anonymous #10386685
    Level 9
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    What is Wrong?It meets the conditions. What is wrong?
    • 11/26/18
    • 1797views
    • 4comments
    1
  • Dusernajder
    Level 20
    Budapest
    Question about the task Prices
    Java Core, Level 8, Lesson 11
    Under discussion
    It works for meI am not sure why are those requirements not validating.
    • 10/13/19
    • 1338views
    • 1comment
    0
  • Carlos Cortázar
    Level 17
    Madrid
    Under discussion
    executing linux commands from javaI am trying to execute a linux command from my java class using the method exec() from the Runtime class in this way: ////////////////////////////// public static String xxUtilInfoFile (String sPath , String sFileName) throws Exception { Runtime r = null; Process p = nu
    • 10/18/19
    • 967views
    • 1comment
    0
  • John
    Level 27
    Washington DC
    Question about the task Five winners
    Java Syntax, Level 8, Lesson 11
    Resolved
    Why is my code not correct? I tried this in eclipse and it outputs correctly.Why is my code not correct? I tried this in eclipse and it outputs correctly.
    • 10/3/19
    • 1463views
    • 2comments
    0
  • vladimir.plamadeala@endava.com
    Level 10
    Chisinau
    Question about the task Census
    Java Syntax, Level 8, Lesson 8
    Resolved
    Why is two last conditions do not verify? In IntelliJ seems to work fine.package com.codegym.task.task08.task0815; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; /* Census */ public class Solution { public static HashMap createMap() { HashMap map = new HashMap<>(); map.put("Moldova", "Ian"); map
    • 10/17/19
    • 1610views
    • 3comments
    0
  • Han
    Level 24
    Question about the task Adding a file to an archive
    Java Collections, Level 1, Lesson 6
    Resolved
    The task doesn't compile on server (but it does on my machine)So when I try to submit this code I get the following error: Error in com/codegym/task/task31/task3105/Solution.java on line 34 cannot find symbol symbol: method readAllBytes() location: variable zipIs of type java.util.zip.ZipInputStream Anyone an idea what I'm doing wrong?
    • 10/17/19
    • 2933views
    • 4comments
    0
  • tony
    Level 20
    Nis
    Question about the task Faster together? We'll see :)
    Java Core, Level 7, Lesson 2
    Resolved
    need helpAny idea of how to solve the third requirement?
    • 3/5/19
    • 1456views
    • 3comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Under discussion
    I can't find the problemI'm really not sure what's wrong with the code.
    • 10/17/19
    • 1171views
    • 2comments
    0
  • hidden #10462592
    Level 8
    Question about the task Notepad for new ideas
    Java Syntax, Level 6, Lesson 11
    Resolved
    Although it worked, I am not sure what happened here! please explain! public class Solution { public static class Idea { public String getDescription() { return "s"; } } public static void printIdea(Idea idea) { System.out.println(idea.getDescription()); } public static void main(String[] ar
    • 10/15/19
    • 1678views
    • 2comments
    0
  • Kavita Rao
    Level 13
    Rockville
    Question about the task Jen or Jen?
    Java Syntax, Level 4, Lesson 6
    Resolved
    Fails Requirement 3 Not sure why the task fails requirement 3 even though it is doing exactly what the requirement states.
    • 9/19/19
    • 1453views
    • 3comments
    0
  • Kavita Rao
    Level 13
    Rockville
    Question about the task To the top of the list
    Java Syntax, Level 7, Lesson 6
    Resolved
    What is wrong in my code? My code should pass all the requirements. I read input and put it in the end of the list. It displays in the input in reverse order. However, it is not passing the requirement. Please let me know what the issue is. Thanks
    • 9/30/19
    • 1411views
    • 3comments
    0
  • Cristian
    Level 16
    Bucharest
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 4
    Archived
    If the entered number is zero, display zero. WHY?import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(reader.readLine()); if(n == 0) { System.out.println(
    • 5/7/19
    • 1752views
    • 3comments
    0
  • theCalculator
    Level 3
    Warren
    Under discussion
    Can anyone help me with this? I cannot get the problems to print horizontally on the print line.Write and submit the source code for the following program. The program will use an integer array of size 10 to store the prices of smartphones. It will then determine and print the prices of the most expensive and cheapest phones. Use the following variables: int[] prices = new int[10]; // Array of
    • 9/17/19
    • 1182views
    • 2comments
    0
  • Cyrus
    Level 3
    Under discussion
    How to add alphabetical/numerical restrictions to scannerHi, I need to remove the most occuring char in a string and then print out the modified version of this string. Can you please tell (give me a hint) me how can I add appropriate alphabetical/numerical restrictions to scanner. By the way here is the code: https://pastebin.com/WQpMbJ6q
    • 10/7/19
    • 984views
    • 1comment
    0
  • Noura
    Level 0
    Riyadh
    Under discussion
    please help i have quiz1. Write Student class such as: Student(id:int, n:string, dep:string, level:int) is the class constructor aiming at instantiate the class Student with the specified arguments ToString()printthestudentinformation. 2. Write Section class such as: Each section can contain 25 students. Section(id: s
    • 10/7/19
    • 961views
    • 1comment
    0
  • Timothy Strong
    Level 4
    San Diego
    Question about the task Crazy eights
    Java Syntax, Level 2, Lesson 5
    Under discussion
    Researched the internet. Need to work object as such. CatHcart = new Cat(). Put the keyword My in there and it worked.Put the keyword MY in there and it works. It did for me. CatMycat = newCat();
    • 10/12/19
    • 1208views
    • 1comment
    0
  • Karan Mahajan
    Level 0
    Under discussion
    can anyone provide me the code for any of the part Programming Fundamentals Assignment 2 2019 Semester 2 1 Programming Fundamentals 2019 Semester 2 Assignment Choices We the PF teaching team have allowed for assignment choices considering the diversity of students in PF. Therefore you are required to select either Assignment 2A or Assignment 2B cons
    • 10/17/19
    • 2128views
    • 3comments
    0
  • Santosh Kumar
    Level 19
    Gagret
    Question about the task Prices
    Java Core, Level 8, Lesson 11
    Under discussion
    Task verification throwing errorTask verification throwing error
    • 8/10/19
    • 1266views
    • 1comment
    0
  • Yasin
    Level 0
    İstanbul
    Under discussion
    Is there a JavaScript course here?Is there a JavaScript course here?
    • 10/14/19
    • 1829views
    • 1comment
    0
  • Geoffrey O
    Level 4
    Totton
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Under discussion
    This outputs Valid varibles but errors on the last test? Why is this ? whats wrong with it? Thanks
    • 10/17/19
    • 867views
    • 1comment
    0
  • Qeviv
    Level 6
    Katowice
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Short question about this task >.>Any feedback what's wrong with it? >.>
    • 10/15/19
    • 1169views
    • 4comments
    0
  • Ivaylo Trifonov
    Level 26
    Madrid
    Question about the task Symbol frequency
    Java Core, Level 8, Lesson 11
    Resolved
    I get "The program ran too long and was closed!"Testing the code on my computer with different inputs I always get correct output, but when I submit it I get this error. Someone can see my error?
    • 9/14/19
    • 1411views
    • 2comments
    1
  • Mikayla Pace
    Level 27
    Salt Lake City
    Question about the task Yet another adapter
    Java Core, Level 9, Lesson 3
    Under discussion
    Last Condition Not ValidatingI've tried a bunch of different things but can't get my read method to work correctly, not sure why.
    • 10/17/19
    • 1465views
    • 3comments
    0
  • Ash Ka
    Level 13
    Calgary
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Under discussion
    What's Wrong ?Output : Id=1 Name=String1 null Id=2 Name= I was getting 'InputMismatchException', and I handled it
    • 10/16/19
    • 1425views
    • 2comments
    0
  • Andrei Dima
    Level 0
    Under discussion
    SUGE PULA DE FRAIERI CU RECLAMELE VOASTRE DE CACAT CARE SUG PULA SUGE PULA DE FRAIERI CU RECLAMELE VOASTRE DE CACAT CARE SUG PULA SUGE PULA DE FRAIERI CU RECLAMELE VOASTRE DE CACAT CARE SUG PULA SUGE PULA DE FRAIERI CU RECLAMELE VOASTRE DE CACAT CARE SUG PULA SUGE PULA DE FRAIERI CU RECLAMELE VOASTRE DE CACAT CARE SUG PULA SUGE PULA DE FRAIERI CU RECLAMELE VOASTRE DE CACAT CARE SUG PULA SUGE PULA DE FRAIERI CU RECLAMELE VOASTRE DE CACAT CARE SUG PULA SUGE PULA DE FRAIERI CU RECLAMELE VO
    • 9/6/19
    • 1149views
    • 1comment
    0
  • Soham
    Level 5
    Kitchener
    Question about the task Come on, lucky seven!
    Java Syntax, Level 4, Lesson 4
    Under discussion
    What's wrong with my code please help. Please help.
    • 10/14/19
    • 1191views
    • 5comments
    0
  • Richard Han
    Level 4
    Lipa
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Why are the conditions not matching ;-;No, but seriously. I need help xD
    • 9/12/18
    • 2376views
    • 8comments
    0
  • Marcin Olech
    Level 41
    Kraków
    Question about the task MVC (part 8)
    Java Multithreading, Level 4, Lesson 14
    Resolved
    I have a strange NullPointerException when trying to call controller.onDeleteUser in EditUserView. I belive that rest is fine. Any ideas?I tried a bunch of things but they didn't work. I think (but not sure) that the controller object throws NullPointerExceptinon but I have no idea why. Even when I comment out methods calls in Controller.onDeleteUser(long id) it throws the exception. Anyone have an idea? I've spent like 8 hours on t
    • 10/17/19
    • 1278views
    • 2comments
    0
  • 1
  • ...
  • 270
  • 271
  • 272
  • 273
  • 274
  • ...
  • 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