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
  • Tian Pro
    Level 23
    Cape Town
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Resolved
    Why wont the last requirement be fulfilled? Is my math correct, or too complicated or something?
    • 04.11.2019
    • 1158views
    • 4comments
    0
  • Emre BELEN
    Level 1
    Istanbul
    Question about the task Minesweeper (Part 6/16)
    Games, Level 0, Lesson 0
    Under discussion
    I couldn't find where the logic failsHey, I'm trying to implement mine sweeper game's 6th part but couldn't achieve the goal that indicated at 3rd condition. Could one of you guys please help me to understand the problem ? Thanks
    • 15.08.2019
    • 990views
    • 1comment
    0
  • Cyrus
    Level 3
    Under discussion
    insert an element into an arrayHow can I add a symbol between the elements in array for example add(a, b, c) to add(*a*, *b*, *c*): public class exercise { public static String[] add(String[] strings) { String array[] = {""}; String output = "*" + Arrays.toString(array); return array; } } publi
    • 30.10.2019
    • 941views
    • 1comment
    0
  • Jay
    Level 11
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Resolved
    What's going on? As far as I can tell the logic is all there..
    • 04.11.2019
    • 1066views
    • 4comments
    0
  • Shujaat Mirza
    Level 3
    Houston
    Question about the task Parenthetical brainteaser
    Java Syntax, Level 3, Lesson 4
    Under discussion
    i cant solve it please helppackage com.codegym.task.task03.task0306; /* Parenthetical brainteaser//2 * (3 + 4 * (5 + 6 * 7)) */ public class Solution { public static void main(String[] args) { System.out.println((2 * 3) + 2 * 5 + (9 * 40) + 6);
    • 03.11.2019
    • 1282views
    • 2comments
    0
  • S V Aditya
    Level 4
    Delhi
    Question about the task Snake (Part 7/20)
    Games, Level 0, Lesson 1
    Under discussion
    Why can't i Iterate?The screenshot as it is works. If I instead try to iterate over the snakeParts list, it all goes to hell. (The commented code is used instead of calling each element over and over for that.) What am I doing wrong? Error Trace It's all Greek down here, but I think it's a NoSuchElement Exception. But
    • 04.11.2019
    • 873views
    • 1comment
    0
  • Jerrod Molnar
    Level 18
    Stoystown
    Question about the task Factorial
    Java Core, Level 5, Lesson 12
    Under discussion
    ConfusedI get all the right output I am completely stumped
    • 25.01.2019
    • 1639views
    • 5comments
    1
  • Anthony Chalk
    Level 30
    London
    Question about the task We don't need repeats
    Java Syntax, Level 8, Lesson 8
    Under discussion
    I don't know what to doCan anyone help me with this exercise and also point me to some resources regarding the Iterator class, I really don't understand it that well. Thank you
    • 03.11.2019
    • 792views
    • 1comment
    0
  • Jarosław Wyka
    Level 3
    Tarnow
    Under discussion
    I can't choose taskHello. When i want choose a task i have an error: Uknown error. And i also can't find my avaible tasks in Select Tab bar. please help.
    • 01.11.2019
    • 876views
    • 1comment
    0
  • curiousmittu
    Level 15
    Downers Grove
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    Not sure what is missing from my solution. I have tested several scnearios at it looks to work fine. Any help is appreciated ? package com.codegym.task.task07.task0708; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; /* Longest string */ public class Solution { private static List strings = new ArrayList(); public static void main(Strin
    • 02.11.2019
    • 927views
    • 1comment
    0
  • hidden #10426395
    Level 2
    Under discussion
    My task is to make the Button component change the text on my TextView with onClick method. How shoud I do this on below given code? import android.os.Bundle; import android.view.View; import android.widget.TextView; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_mai
    • 03.11.2019
    • 776views
    • 1comment
    0
  • Han
    Level 24
    Question about the task Creating a proxy object
    Java Collections, Level 2, Lesson 8
    Resolved
    method newProxyInstance in class java.lang.reflect.Proxy cannot be applied to given typesThis line: return (SomeInterfaceWithMethods)Proxy.newProxyInstance(new CustomInvocationHandler(original)); gives the following error: Error in com/codegym/task/task32/task3205/Solution.java on line 28 method newProxyInstance in class java.lang.reflect.Proxy cannot be applied to given types; re
    • 24.10.2019
    • 1393views
    • 2comments
    0
  • Leontin Vasii
    Level 6
    Iasi
    Question about the task Currency exchange
    Java Syntax, Level 3, Lesson 3
    Under discussion
    A little help plsHy everyone...Can someone help me with this code ? What is wrong ?
    • 04.11.2019
    • 918views
    • 2comments
    0
  • Cristian
    Level 16
    Bucharest
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Under discussion
    I have a problem with the last two requirements. Help me, please! Thank you!package com.codegym.task.task07.task0712; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Scanner; /* Shortest or longest */ public class Solution { public static void main(String[] args) throws Except
    • 03.11.2019
    • 890views
    • 3comments
    0
  • Satya Vath
    Level 31
    Vijayawada
    Question about the task Refactoring (part 9)
    Java Multithreading, Level 5, Lesson 16
    Resolved
    Cant get ItHelp
    • 17.06.2019
    • 1255views
    • 6comments
    0
  • Piotr Wikarski
    Level 19
    Birmingham
    Question about the task Building a file
    Java Core, Level 8, Lesson 11
    Resolved
    Can't pass validation. My code works fine, buy is not passing validations.. Can anyone help me to see where the problem is?
    • 03.11.2019
    • 847views
    • 1comment
    0
  • theCalculator
    Level 3
    Warren
    Question about the task Escaping characters
    Java Syntax, Level 3, Lesson 6
    Under discussion
    I can't get this!what am I missing.
    • 02.11.2019
    • 897views
    • 1comment
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Cats should not be abstract!
    Java Core, Level 2, Lesson 6
    Under discussion
    HEEEEEEEELPGive me the solution pls for my full understanding)
    • 22.06.2019
    • 1428views
    • 2comments
    0
  • jorge ives murillo paredes
    Level 40
    New York City
    Question about the task Reading and writing to a file: CodeGym
    Java Core, Level 10, Lesson 2
    Under discussion
    Can somebody help me whit the exeptions package com.codegym.task.task20.task2002; import java.io.*; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; /* Reading and writing to a file: CodeGym */ public class Solution { public static void main(String[]
    • 02.11.2019
    • 1374views
    • 1comment
    0
  • Facundo Villarroel
    Level 20
    Berlin
    Question about the task Five winners
    Java Syntax, Level 8, Lesson 11
    Resolved
    Two methods validation not passing...I'm starting to get a little tired of the stupid validations not passing. From where this thing is taking that the Solution class doesn't have two methods?
    • 19.10.2019
    • 1014views
    • 2comments
    0
  • Facundo Villarroel
    Level 20
    Berlin
    Question about the task Let's make the code do something useful!
    Java Syntax, Level 9, Lesson 11
    Resolved
    Like for everyone, failing on third requirementTesting my code, it works. Unless I'm not undestanding the task as they meant it, then it should pass. 1. Catch the exception if file doesn't exist 2. Read the source file again 3. Read destination file Its dumb to catch the exception the first time you read it and not the second one, but that is wh
    • 23.10.2019
    • 1251views
    • 3comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Resolved
    Please helpSo unsure what I'm supposed to do
    • 03.11.2019
    • 1581views
    • 1comment
    0
  • Cristian
    Level 16
    Bucharest
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    What is wrong with my code? The last two requirements are not satisfied. Thanks a lot.package com.codegym.task.task07.task0708; //import java.io.BufferedReader; //import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import java.util.Scanner; /* Longest string */ public class Solution { private static List strings = new ArrayList();; privat
    • 01.11.2019
    • 1196views
    • 5comments
    0
  • resperaptor
    Level 2
    Yekaterinburg
    Question about the task Family relations
    Java Syntax, Level 2, Lesson 2
    Resolved
    Whats wrong?Man Man = new Man(); Woman Woman = new Woman();
    • 17.04.2019
    • 2289views
    • 5comments
    3
  • Cheikh
    Level 7
    Dakar
    Question about the task Cat and statics
    Java Syntax, Level 6, Lesson 11
    Under discussion
    Don't get where the problem is !Despite all my attempts, it looks like there's something I don't see. Can someone guide me please?
    • 02.11.2019
    • 1261views
    • 2comments
    0
  • Clarendon lee
    Level 8
    Baltimore
    Question about the task The whole duck isn't enough
    Java Syntax, Level 5, Lesson 12
    Resolved
    Task requirements are not metWhat's wrong? Verify say "Task requirements are not met" Thanks a lot!
    • 31.10.2019
    • 1323views
    • 2comments
    0
  • hidden #10549694
    Level 3
    Under discussion
    How can I contiunue learningI'm actually at level 3, lesson 1, with IntelliJ installed and I tried to solve the task in that lesson - but when I'm trying to verify my code (in a browser), the buttons just goes grey and nothing happens. Moreover, lesson 2 of this level, where I installed the CodeGym plug-in - there are only tas
    • 01.11.2019
    • 1357views
    • 4comments
    0
  • Станислав Владимирович
    Level 4
    Donduseni
    Question about the task More conversions
    Java Syntax, Level 3, Lesson 8
    Under discussion
    Help guysHello guys, My program works properly, whenever i put any number i want in my program, it gives me correct answer, but last condition it's not correct, can you help me with that?
    • 17.05.2019
    • 1465views
    • 6comments
    0
  • gery
    Level 9
    Islamabad
    Question about the task More conversions
    Java Syntax, Level 3, Lesson 8
    Under discussion
    identify correction import java.io.InputStreamReader; import java.io.BufferedReader; public class Solution { public static void main(String[] args) throws Exception { BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); String s = bf.readLine(); int ss = Integ
    • 13.09.2018
    • 1418views
    • 7comments
    0
  • Mack
    Level 20
    Osiedle-Nowiny
    Question about the task CRUD
    Java Core, Level 7, Lesson 10
    Resolved
    Where is mistake?Help, please
    • 07.12.2018
    • 1926views
    • 6comments
    2
  • 1
  • ...
  • 262
  • 263
  • 264
  • 265
  • 266
  • ...
  • 371
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