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
  • sowjanya sripada
    Level 2
    Hyderabad
    Question about the task Display the square of a number
    Java Syntax, Level 1, Lesson 3
    Resolved
    whats wrong in my code.
    • 18.09.2018
    • 1506views
    • 6comments
    0
  • Musa
    Level 4
    LAGOS
    Question about the task Display the square of a number
    Java Syntax, Level 1, Lesson 3
    Under discussion
    EXPLAIN THE LOGICAL ERROR FOR MRpackage com.codegym.task.task01.task0140; /* Display the square of a number */ public class Solution { public static int number = 25; public static void main(String[] args) { //write your code here int numb=25; int square=numb*numb; System.out.println(squa
    • 14.02.2019
    • 1502views
    • 3comments
    0
  • Ghanashyam dahal
    Level 2
    Sapatgram
    Question about the task Display the square of a number
    Java Syntax, Level 1, Lesson 3
    Under discussion
    task;what is wrong with this? i got square of the number.
    • 25.02.2019
    • 1247views
    • 5comments
    0
  • Bhagyashri Bangale
    Level 2
    Pune
    Question about the task A variable on our screen
    Java Syntax, Level 1, Lesson 3
    Under discussion
    i am getting this errorcannot find symbol symbol: variable s location: class com.codegym.task.task01.task0110.Solution: Solution.java, line: 12, column: 28 this error of this code String name="abc"; System.out.println(s);
    • 27.09.2018
    • 1352views
    • 5comments
    0
  • Nirake_
    Level 8
    Mumbai
    Question about the task A variable on our screen
    Java Syntax, Level 1, Lesson 3
    Under discussion
    The only error I get is "the output text should be the value of the variables. "package com.codegym.task.task01.task0110; /* A variable on our screen */ public class Solution { public static void main(String[] args) { String name="alex"; System.out.println("name= "+name); } } What is wrong in this solution.
    • 16.10.2018
    • 1785views
    • 5comments
    0
  • Vijay Rangan
    Level 5
    Jakarta
    Question about the task Adding
    Java Syntax, Level 4, Lesson 16
    Under discussion
    i dont know what to docan any one say what's wrong in here
    • 03.12.2018
    • 1404views
    • 3comments
    0
  • Mario
    Level 7
    Noida
    Question about the task Adding
    Java Syntax, Level 4, Lesson 16
    Under discussion
    Please help !please help me to solve this problem with some approach. I have tried many. Thanks in advance.
    • 19.10.2018
    • 1338views
    • 4comments
    0
  • hidden #10424566
    Level 7
    Question about the task Adding
    Java Syntax, Level 4, Lesson 16
    Under discussion
    Every time i try verifying my solution i get this: The program ran too long and was closed!My validation won't just go through . It works for all the other challenges, but for this particular one it doesn't. In the meantime somebody please tell me if this code will get verified if the system works again.
    • 08.02.2019
    • 1488views
    • 4comments
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task One for all, all for one
    Java Core, Level 6, Lesson 10
    Under discussion
    What is wrong in my code?need help
    • 27.02.2019
    • 1305views
    • 3comments
    0
  • Imran Hashmi
    Level 6
    York
    Question about the task Predictions
    Java Syntax, Level 3, Lesson 8
    Resolved
    Codegym plug in Hi There, it looks like my IDEA plugin has stopped syncing with the code gym site, as an example I have successfully completed two tasks but when I look at the remaining tasks then they have not been removed from my list. Also the Codegym site is not in sync. Any ideas? Thanks,
    • 25.02.2019
    • 1205views
    • 3comments
    0
  • Andrew
    Level 29
    Seattle
    Question about the task Building a file
    Java Core, Level 8, Lesson 11
    Resolved
    Tell me all the wrongs.I've tested this successfully on my system and reviewed the other questions and responses. I believe I'm doing it right, but obviously not. My thoughts are that I'm not using the method(s) that it wants. Help?
    • 25.02.2019
    • 1847views
    • 28comments
    0
  • Ganesh
    Level 1
    Pune
    Question about the task 2 + 3 = 5
    Java Syntax, Level 0, Lesson 8
    Under discussion
    inefficient dark matterafter excuting succesfully can't complete
    • 13.02.2019
    • 1312views
    • 2comments
    0
  • shreya
    Level 2
    Question about the task Where does a Person come from?
    Java Syntax, Level 2, Lesson 2
    Under discussion
    i am not getting this code? package com.codegym.task.task02.task0202; /* Where does a Person come from? */ public class Solution { public static void main(String[] args) { //write your code here Person person=new Person(); person.name; person.age; person.weight; person.mo
    • 09.09.2018
    • 1890views
    • 9comments
    0
  • Sheheryar
    Level 7
    Islamabad
    Question about the task Display today's date
    Java Syntax, Level 5, Lesson 12
    Under discussion
    help me in this pls!!i don't know how to display the date in the required format
    • 05.02.2019
    • 1778views
    • 7comments
    0
  • imran khan
    Level 6
    islamabad
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 7
    Under discussion
    code is working fine in intellijhelp
    • 26.10.2018
    • 1689views
    • 8comments
    0
  • Usama Ali
    Level 2
    Multan
    Question about the task Declare variables
    Java Syntax, Level 0, Lesson 4
    Under discussion
    Can anyone help me in this task?I have tried it so many times but could not complete so plz help me!
    • 10.09.2018
    • 1681views
    • 7comments
    0
  • hidden #10426395
    Level 2
    Question about the task Declare variables
    Java Syntax, Level 0, Lesson 4
    Resolved
    Unable to locate the error. Any thoughts guys?Any advice would be highly appreciated
    • 08.02.2019
    • 1252views
    • 6comments
    0
  • Radek
    Level 22
    Warsaw
    Question about the task Reinforce the adapter
    Java Core, Level 9, Lesson 3
    Resolved
    How to pass the vlidation?Im trying to make the solution appropriate for validator but I have no idea how to achieve it. I tested transformation of string data used in implemented methods and everything seems to be ok. Please, help.
    • 19.11.2018
    • 1712views
    • 2comments
    2
  • vikr@nt
    Level 9
    Cincinatti
    Question about the task We don't need repeats
    Java Syntax, Level 8, Lesson 8
    Under discussion
    What is the problemAnybody , please let me know the issue here. I'm passing the value by copying the Map as it is done in remove function.
    • 26.02.2019
    • 1326views
    • 1comment
    0
  • Araceli
    Level 19
    Buenos Aires
    Question about the task Chicken factory
    Java Core, Level 4, Lesson 6
    Resolved
    Can someone please help me see my mistake? It doesn't verify the last condition: "The HenFactory class's getHen method must return a NorthAmericanHen object if Continent.NORTHAMERICA is passed as an argument."
    • 22.02.2019
    • 1809views
    • 7comments
    0
  • Muhammad Faizan Janjua
    Level 6
    Lahore
    Question about the task Deep and pure love
    Java Syntax, Level 3, Lesson 8
    Under discussion
    ? import java.io.*; public class Solution { public static void main(String[] args) throws Exception{ //write your code here BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); String name1 = bf.ReadLine(); String name2 = bf.ReadLine();
    • 16.09.2018
    • 1394views
    • 4comments
    0
  • Hashirama
    Level 26
    Port-Harcourt
    Question about the task Splitting a file
    Java Core, Level 8, Lesson 5
    Resolved
    Please helpIf i run any code on my intelliJ i get this error message: Error:Module '2.JavaCore' production: java.lang.ClassCastException: org.jetbrains.jps.builders.java.dependencyView.TypeRepr$PrimitiveType cannot be cast to org.jetbrains.jps.builders.java.dependencyView.TypeRepr$ClassType How can I clear t
    • 17.02.2019
    • 1691views
    • 2comments
    0
  • Balen Asangbeh
    Level 23
    Douala
    Question about the task Beer. Part 2. The recovery.
    Java Core, Level 3, Lesson 2
    Under discussion
    please what is wrong public class Solution { public static void main(String[] args) { Drink beer = new AlcoholicBeer(); System.out.println(beer.toString()); } public interface Drink { boolean isAlcoholic(); } public static class AlcoholicBeer implements Drink{ @Ove
    • 25.02.2019
    • 1182views
    • 6comments
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Under discussion
    need hintHow to reslove this task?
    • 15.01.2019
    • 1749views
    • 7comments
    0
  • lordheraldor
    Level 23
    Newark
    Question about the task Splitting a file
    Java Core, Level 8, Lesson 5
    Resolved
    I'm clearly using the objects described in the requirements but they won't verifyBasically, my code works to get the necessary data in the right place but I am not initializing the correct objects to do it.
    • 25.02.2019
    • 1490views
    • 7comments
    0
  • Joy Majumdar
    Level 16
    Kolkata
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Under discussion
    Last numbers are creating problemPlease some one explain clearly
    • 25.02.2019
    • 1222views
    • 1comment
    0
  • VIGNESH
    Level 2
    Mumbai
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    why the task not completed?i am trying to complete this task but it is showing task failed to pass testing what the thing i missed
    • 25.02.2019
    • 1174views
    • 2comments
    0
  • hidden #10424566
    Level 7
    Question about the task Static cats
    Java Syntax, Level 6, Lesson 11
    Archived
    quizwhy do we have to use the:for(Cat cat :cats )
    • 25.02.2019
    • 1331views
    • 2comments
    0
  • M suleman
    Level 20
    Lahore
    Question about the task Splitting a file
    Java Core, Level 8, Lesson 5
    Under discussion
    condition 2 & 3 is not satisfy byte[] buffer = new byte[1000]; while (inputStream.available() > 0) //as long as there are unread bytes { //Read the next block of bytes into buffer, and store the actual number of bytes read in count. int count = inputStream.read(buffer); outputStream.write(buffer, 0, count/2);
    • 12.11.2018
    • 2068views
    • 3comments
    0
  • Nazim Haider
    Level 2
    Mumbai
    Question about the task Family relations
    Java Syntax, Level 2, Lesson 2
    Under discussion
    whats the wrong with my code? public class Solution { public static void main(String[] args) { Man man = new Man(); Woman woman = new Woman(); man.wife = Woman; Woman.husband = Man; } public static class Man { public int age; public int height; public Wom
    • 27.10.2018
    • 1514views
    • 5comments
    0
  • 1
  • ...
  • 340
  • 341
  • 342
  • 343
  • 344
  • ...
  • 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