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
  • Seferi
    Level 22
    Question about the task Prices 2
    Java Core, Level 8, Lesson 11
    Resolved
    String out of bounds ???Hi, I'm still working on this task but I'm getting a string out of bounds error on line 33 and can't figure out why. Help will be appreciated. Thanks.
    • 23.10.2020
    • 748views
    • 8comments
    0
  • Branka
    Level 41
    Belgrade
    Question about the task Refactoring (part 7)
    Java Multithreading, Level 5, Lesson 16
    Resolved
    The printStudentInfo(Student) should display information about the student.I am not sure which part of my code is wrong. Can someone help me figure this one out? I suppose it's in the StudentDatabase class, but I am not sure why it won't pass. Thanks in advance. Branka
    • 14.04.2020
    • 1240views
    • 3comments
    0
  • WIDMO
    Level 25
    Gdańsk
    Question about the task Archiver (part 2)
    Java Multithreading, Level 7, Lesson 15
    Resolved
    I have no idea what's wrong, can anybody help?Can you give me at least a hint what I should do? Thx.
    • 24.07.2020
    • 1028views
    • 8comments
    0
  • Dinesh
    Level 7
    Delhi
    Under discussion
    I am not getting the code snippet //generate three random numbers (I need explanation on working of Math.random()*oneLenghth and so on....)import java.lang.Math; public class PhraseOMatic{ public static void main(String[]args){ //Make three set of words to choose from. Add your own! String[] wordListOne = {"24/7", "multi-Tier","30,000 foot","B-to-B","win-win","front-end","web-based","pervassive","smart","six-sigma","critical-path","
    • 23.10.2020
    • 350views
    • 1comment
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Two in one
    Java Core, Level 8, Lesson 11
    Under discussion
    Last condition plsReally need help
    • 29.06.2019
    • 1170views
    • 2comments
    0
  • Dmitri
    Level 22
    Seversk
    Question about the task Multiplication table
    Java Syntax, Level 3, Lesson 6
    Resolved
    Run button of the IDEAWhy Run button of IDEA (green triangle) runs not current code opened on the screen, but previous?
    • 16.09.2020
    • 881views
    • 4comments
    0
  • Dmitri
    Level 22
    Seversk
    Question about the task Expressing ourselves more concisely
    Java Syntax, Level 7, Lesson 6
    Archived
    My program works okMy program works ok and I do initialize the list of Strings.
    • 20.10.2020
    • 579views
    • 2comments
    0
  • Dmitri
    Level 22
    Seversk
    Question about the task To the top of the list
    Java Syntax, Level 7, Lesson 6
    Resolved
    what is wrong with this initialization?What is wrong with this initialization? Is it a sort of bug in the system?
    • 20.10.2020
    • 428views
    • 1comment
    0
  • Dinesh
    Level 7
    Delhi
    Under discussion
    Unable to understand the output of Bold and Underlined statement. In my opinion it must not print this line instead It should print the line that is strikethrough in the program. import java.lang.Math.* ; class Statements{ public static void main(String[]args){ int x = 3; String name = "Dirk"; x = x * 17; System.out.println("x is " + x); double d = Math.random(); while (x > 12) { x = x-1; System.out.print("x is " + x); } for (x = 0; x < 10; x = x + 1
    • 22.10.2020
    • 496views
    • 2comments
    0
  • Maxine Hammett
    Level 19
    San Diego
    Question about the task Checking the order
    Java Syntax, Level 7, Lesson 9
    Under discussion
    Need help on last taskI'm confused on what to do for the last task. Could someone please guide me.
    • 04.07.2020
    • 633views
    • 1comment
    2
  • Anitamalina
    Level 18
    København
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Resolved
    condition fails: If a triangle with the specified sides could exist, you need to display: "The triangle is possible."hm.. I can't figure out, what is wrong here? I can't fulfil this condition: If a triangle with the specified sides could exist, you need to display: "The triangle is possible." any hints ?
    • 19.10.2020
    • 501views
    • 3comments
    0
  • Aleksandr
    Level 22
    Moscow
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Resolved
    Code works with negative, positive, result fine, but not passCan you help please, I don't know where I am wrong.
    • 15.10.2020
    • 777views
    • 4comments
    0
  • Chris
    Level 19
    Newark
    Question about the task Family census
    Java Syntax, Level 7, Lesson 12
    Resolved
    I get the right output but it wont passSo when I ran the solution in intellij I literally got the right solution. I put null values for the Human father and Human mother reference which I think may be the issue because I think it may be secretly asking me to reference both constructors(which I don't understand). If that's the case I stil
    • 21.10.2020
    • 988views
    • 6comments
    0
  • manoj deo
    Level 3
    Jakarta
    Question about the task Where does a Person come from?
    Java Syntax, Level 2, Lesson 2
    Resolved
    why is it not fulfilling the the condition??what's the problem??
    • 01.09.2018
    • 1827views
    • 4comments
    0
  • hidden #10661150
    Level 3
    Question about the task Currency exchange
    Java Syntax, Level 3, Lesson 3
    Under discussion
    Help please! I don't know wats wrong with my code........
    • 22.10.2020
    • 578views
    • 1comment
    0
  • Ian De Bie
    Level 28
    Austin
    Question about the task Introducing tags
    Java Core, Level 9, Lesson 11
    Under discussion
    Can someone tell me why my code doesn't pass? I am stuck, because when I test on my IDE, I get the proper output. Is there an edge case I need to account for?
    • 22.10.2020
    • 462views
    • 1comment
    0
  • Maria
    Level 22
    Moscow
    Question about the task Improving functionality
    Java Syntax, Level 5, Lesson 12
    Resolved
    I think I passed, but..noWhy I can not use arrays? Please, help////
    • 22.10.2020
    • 479views
    • 2comments
    0
  • Anatoly
    Level 17
    Question about the task HashMap of cats
    Java Syntax, Level 8, Lesson 3
    Resolved
    what is wrong?Everything is works, but compiler don't want to read it, are any ideas what is wrong here?
    • 20.10.2020
    • 706views
    • 3comments
    0
  • Valuev Nutt
    Level 4
    Chiba
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Under discussion
    What is going on Appreciate the advice if you have any
    • 22.10.2020
    • 344views
    • 1comment
    0
  • marcus Simoes
    Level 13
    Dortmund
    Question about the task A name is a name
    Java Syntax, Level 4, Lesson 16
    Resolved
    Hey guys im not sure what im doing wrong here. A help is much appreciated.package com.codegym.task.task04.task0443; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String name = reader.readLine(); int month = Integer.parseInt(rea
    • 21.10.2020
    • 564views
    • 4comments
    0
  • Neha Anjum
    Level 6
    Hyderabad
    Question about the task Do we have a pair?
    Java Syntax, Level 4, Lesson 4
    Resolved
    Can someone tell me the reason for this error...???import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { Scanner in = new Scanner(System.in); int a = in.nextInt(); int b = in.nextInt(); int c = in.nextInt(); if( a == b){ System.out.printl
    • 17.09.2018
    • 2277views
    • 7comments
    0
  • Youngsan
    Level 41
    Seoul
    Question about the task Mirror image
    Java Core, Level 9, Lesson 11
    Resolved
    Not verified?Please help me!
    • 15.09.2020
    • 392views
    • 2comments
    0
  • msantagiulianab
    Level 26
    London
    Question about the task Mirror image
    Java Core, Level 9, Lesson 11
    Under discussion
    My code is attached. Please help. package com.codegym.task.task19.task1926; /* Mirror image 1. Read a file name from the console. Read the contents of the file. 2. For each line in the file: 2.1. reverse the order of all characters. 2.2. display the result. 3. Close the streams. Example input file: I'm a programmer. Amigo Examp
    • 04.11.2019
    • 1085views
    • 2comments
    0
  • dhanush
    Level 30
    Chennai
    Question about the task Long words
    Java Core, Level 9, Lesson 11
    Resolved
    need helpHow can i remove the last element without using StringBuilder data while(br.ready){ String s = br.readLine(); String[] str = s.split(" "); for(String s1 : str){ if(s1,length()>6){ bw.write(s1+","); } } } it almost does the same thing but can't delete the last element.
    • 31.08.2020
    • 456views
    • 6comments
    0
  • yehuda b
    Level 23
    Beersheba
    Question about the task Tracking changes
    Java Core, Level 9, Lesson 11
    Resolved
    code works fine with my filesis it the try\catch block that's keeping it from validating?
    • 14.09.2020
    • 599views
    • 6comments
    0
  • Ian De Bie
    Level 28
    Austin
    Question about the task Words with numbers
    Java Core, Level 9, Lesson 11
    Resolved
    Why doesn't my code pass?it works fine for my test cases? is there an edge case i am missing, or what can you tell me is wrong with my code?
    • 21.10.2020
    • 431views
    • 2comments
    0
  • Ivan
    Level 22
    Nope
    Question about the task Tracking changes
    Java Core, Level 9, Lesson 11
    Resolved
    Be sure that the lines list has the REMOVED label with the required lines in the correct places.Guys, Can you help me out here? I can't understand how to fix my code exactly...
    • 01.04.2020
    • 1511views
    • 8comments
    0
  • Rich
    Level 23
    San Diego
    Question about the task Console-based piggy bank
    Java Syntax, Level 5, Lesson 12
    Resolved
    right output, not meeting last 3 criteriait looks right, but if I could get a tiny hint at where my bug is I would appreciate it.
    • 02.05.2020
    • 1268views
    • 3comments
    0
  • Sergiu
    Level 1
    Iasi
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Resolved
    not passing "The program should display the maximum of the N entered numbers."What's the issue on my end? I'm not passing "The program should display the maximum of the N entered numbers." manually tested it and seems fine... ty
    • 04.01.2020
    • 1231views
    • 4comments
    0
  • Etienne Bélanger
    Level 34
    Longueuil
    Question about the task Punctuation
    Java Core, Level 9, Lesson 5
    Resolved
    The 5th condition doesn't pass. Is my regex bad?The 5th condition doesn't pass. Is my regex bad? The result to this seems fine on my side: line = line.replaceAll("[^A-Za-z0-9_]","");
    • 24.01.2020
    • 1139views
    • 3comments
    0
  • 1
  • ...
  • 121
  • 122
  • 123
  • 124
  • 125
  • ...
  • 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