CodeGym
Promotion
CodeGym University
Learning
Course
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
All quests Java Syntax Java Core Java Multithreading Java Collections JSP & Servlets Java Syntax Pro Games
All levels Level 0 Level 1 Level 2 Level 3 Level 4 Level 5 Level 6 Level 7 Level 8 Level 9 Level 10 Level 11 Level 12 Level 13 Level 14 Level 15 Level 16 Level 17 Level 18 Level 19 Level 20 Level 21 Level 22 Level 23 Level 24 Level 25 Level 26 Level 27 Level 28
Any status New Discussed Resolved Archived Duplicates
Hot Popular New Old
  • Nirake_
    Level 8
    Mumbai
    Question about the task Declare variables
    Java Syntax, Level 0, Lesson 4
    Under discussion

    what is the matter when it says that :

    CLASS INTERFACE OR ENUM EXPECTED.
    • 24.09.2018
    • 900views
    • 1comment
    0
  • Arjun Kiruthivasan
    Level 14
    Chennai
    Question about the task Let's make the code do something useful!
    Java Syntax, Level 9, Lesson 11
    Under discussion

    WHERE AM I WRONG??

    pls tell me!!!
    • 24.09.2018
    • 1210views
    • 2comments
    0
  • gery
    Level 9
    Islamabad
    Question about the task The end
    Java Syntax, Level 7, Lesson 12
    Resolved

    unable to start

    level 7, lesson 12, name: the end. **stuck at "how to take input untill user types 'the end'"..? public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); ArrayList s = new ArrayList();
    • 24.09.2018
    • 1243views
    • 12comments
    0
  • gery
    Level 9
    Islamabad
    Resolved

    where correction is necessary

    public static void main(String[] args) { Thread.sleep(1000); for (int i = 30; i >= 0; i--) { System.out.println(i); Thread.sleep(1000); //write your code here } System.out.println("Boom!"); }
    • 24.09.2018
    • 786views
    • 8comments
    0
  • R@N@ AHM3D T@RIQ
    Level 2
    Lahore
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion

    How print method prinys each string 4 times in main method???

    plz explain
    • 20.09.2018
    • 2252views
    • 5comments
    0
  • gery
    Level 9
    Islamabad
    Question about the task Duplicating words
    Java Syntax, Level 7, Lesson 9
    Resolved

    out of memory error on line 37

    BufferedReader b = new BufferedReader(new InputStreamReader(System.in)); ArrayList s = new ArrayList(); for(int a=0; a<10; a++) { s.add(b.readLine()); } ArrayList result = doubleValues(s); for( String x: result)
    • 23.09.2018
    • 1143views
    • 1comment
    0
  • shreya
    Level 2
    Question about the task Choose healthy food! Choose fruit!
    Java Syntax, Level 1, Lesson 8
    Archived

    I can't able to complete the task?

    package com.codegym.task.task01.task0135; /* Two roads diverged in a yellow wood */ public class Solution { public static void main(String[] args) { System.out.println("Two roads diverged in a yellow wood,"); System.out.println("And sorry I could not travel both"); S
    • 07.08.2018
    • 1487views
    • 5comments
    1
  • sowjanya sripada
    Level 2
    Hyderabad
    Question about the task Square of a number
    Java Syntax, Level 1, Lesson 8
    Archived

    is anything missing ?

    main method should display result of sqr method .need clarification.
    • 21.09.2018
    • 886views
    • 5comments
    0
  • Neha Anjum
    Level 6
    Hyderabad
    Question about the task Cat register
    Java Syntax, Level 4, Lesson 2
    Resolved

    What am I missing..?

    package com.codegym.task.task04.task0404; /* Cat register */ public class Cat { private static int catCount = 0; public void addNewCat(int catCount) { this.catCount = catCount; } public static void main(String[] args) { Cat cat = new Cat();
    • 15.09.2018
    • 1353views
    • 5comments
    0
  • Shahanshah Alam
    Level 9
    Mohali
    Question about the task Create a Friend class
    Java Syntax, Level 5, Lesson 7
    Under discussion

    help please...what is wrong in this code?

    public class Friend { String name; int age; char sex; public void initialize(String name){ this.name = name; } public void initialize(String name , int age){ this.name = name; this.age = age; } public void initialize(String name , int age, char sex){ this.name =
    • 22.09.2018
    • 1026views
    • 2comments
    0
  • Nirake_
    Level 8
    Mumbai
    Question about the task I think being a programmer is cool
    Java Syntax, Level 0, Lesson 3
    Under discussion

    Dark matter not received

    I was able to do my first program but I did not got the dark matter.
    • 21.09.2018
    • 910views
    • 2comments
    0
  • Khurram
    Level 16
    Lahore
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Resolved

    whats wrong with this

    what seems to be the problem?
    • 03.09.2018
    • 1229views
    • 7comments
    0
  • Nirake_
    Level 8
    Mumbai
    Under discussion

    I DID NOT GOT MY DARK MATTER!!!!!!!!

    I DID FINISHED MY 3 PROGRAMS AND NOE IT IS PROPERLY RUNNING BUT I DID NOT GOT THE DARK MATTER HOW WOULD I CONTINUE.......!!!!!
    • 22.09.2018
    • 764views
    • 1comment
    0
  • Deepak Rana
    Level 4
    Bazpur
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion

    i already spent 1 hour nothing happens, dont want to waste more.....

    package com.codegym.task.task02.task0217; /* Minimum of four numbers */ public class Solution { public static int min(int a, int b, int c, int d) { //write your code here int t; if(a
    • 21.09.2018
    • 1122views
    • 2comments
    0
  • gery
    Level 9
    Islamabad
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived

    how Using a loop, find the longest string in the list.

    so far 'm abl to write code upto this. condition 3 needs solution in this, i read other soutions but unable to understand them. BufferedReader b = new BufferedReader(new InputStreamReader(System.in)); ArrayList l = new ArrayList(); for(int i=0; i<5; i++) {
    • 21.09.2018
    • 1362views
    • 4comments
    0
  • Neha Anjum
    Level 6
    Hyderabad
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived

    problem here :P

    package com.codegym.task.task05.task0532; import java.io.*; /* Task about algorithms */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int maximum = 5; /
    • 21.09.2018
    • 1058views
    • 1comment
    0
  • manoj deo
    Level 3
    Jakarta
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Resolved

    what to do next?

    ??
    • 07.09.2018
    • 983views
    • 11comments
    0
  • gery
    Level 9
    Islamabad
    Question about the task Maximum in an array
    Java Syntax, Level 7, Lesson 4
    Resolved

    identify correction in arrays

    i entered value in (system.in) both in vertical manner and horizontal manner and then click the run button, error and if i click without entering value, even then the same error.. public static void main(String[] args) throws Exception { int[] array = initializeArray(); int max = m
    • 20.09.2018
    • 1329views
    • 3comments
    0
  • shreya
    Level 2
    Question about the task Square of a number
    Java Syntax, Level 1, Lesson 8
    Archived

    what's wrong with this code?

    package com.codegym.task.task01.task0127; /* Square of a number */ public class Solution { public static void main(String[] args) { int a = sqr(5); System.out.println("the square of 5"+ a * a); } public static int sqr(int a) { return a * a; } }
    • 07.08.2018
    • 1655views
    • 17comments
    2
  • Tayyab Mubeen
    Level 16
    Lahore
    Resolved

    What is more convenient..!!!!!

    What is more convenient to use scanner class or bufferreader... am confused
    • 19.09.2018
    • 825views
    • 2comments
    0
  • stevenbadang
    Level 1
    Davao
    Question about the task Contract
    Java Syntax, Level 1, Lesson 6
    Resolved

    how to check typo?

    how to solve ..the system says that i have a typo error i think
    • 05.08.2018
    • 1642views
    • 5comments
    0
  • Sawankumar
    Level 4
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Resolved

    what's wrong in this code..?

    System.out.println("Your salary is: "+a+" dollars per month");
    • 01.08.2018
    • 1162views
    • 5comments
    0
  • Arjun Kiruthivasan
    Level 14
    Chennai
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Under discussion

    HELP ME??

    GIVE ME A SOLUTION
    • 20.09.2018
    • 1405views
    • 1comment
    0
  • saiteja velagandula
    Level 2
    Hyderabad
    Under discussion

    Can anyone explain this elaborately

    Save a reference to the previously created Woman object in man.wife. Save a reference to the previously created Man object in a woman. husband (Hint: woman.husband = man). I didn't understand this.
    • 20.09.2018
    • 838views
    • 1comment
    0
  • Arjun Kiruthivasan
    Level 14
    Chennai
    Question about the task Make a family
    Java Syntax, Level 8, Lesson 11
    Under discussion

    any one help me?

    where am i mistaken?? pls show me a solution
    • 20.09.2018
    • 982views
    • 1comment
    0
  • Arjun Kiruthivasan
    Level 14
    Chennai
    Question about the task Checking the order
    Java Syntax, Level 7, Lesson 9
    Resolved

    How to solve this?

    How to solve this?
    • 15.09.2018
    • 1417views
    • 1comment
    0
  • Arjun Kiruthivasan
    Level 14
    Chennai
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Resolved

    how to overcome this problem?

    how to overcome this problem?
    • 15.09.2018
    • 1683views
    • 1comment
    0
  • DuesVultKek
    Level 7
    Jacksonville
    Question about the task Let's put together a rectangle
    Java Syntax, Level 5, Lesson 7
    Under discussion

    Little help...

    "- create a copy of another rectangle passed as an argument" - This is what I don't understand here so please kindly help me This statement applies to 4th initialize method only. Thanks.
    • 18.09.2018
    • 1384views
    • 2comments
    0
  • WonderWoman
    Level 8
    Bangalore
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Under discussion

    All conditions except - "3. After entering -1, the program must correctly terminate."

    The code apparently satisfies all conditions except "3. After entering -1, the program must correctly terminate." Though with "Run (without verification)", I get the required results for all the combinations listed..
    • 17.09.2018
    • 1022views
    • 4comments
    0
  • Shahanshah Alam
    Level 9
    Mohali
    Question about the task Positive number
    Java Syntax, Level 4, Lesson 7
    Under discussion

    help

    what is wrong in this? help please
    • 18.09.2018
    • 895views
    • 4comments
    0
  • 1
  • ...
  • 339
  • 340
  • 341
  • 342
  • 343
  • ...
  • 346
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Game Projects
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
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 Java developer’s career.
Follow us
Interface language
Programmers Are Made, Not Born © 2022 CodeGym
Download App
  • Google Play
  • Huawei AppGallery
  • App Store
MastercardVisa
Programmers Are Made, Not Born © 2022 CodeGym
This website uses cookies to provide you with personalized service. By using this website, you agree to our use of cookies. If you require more details, please read our Terms and Policy.