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
  • Khurram
    Level 16
    Lahore
    Question about the task Checking the order
    Java Syntax, Level 7, Lesson 9
    Resolved

    Last condition is not verified. Can anyone please check what's wrong with the code

    package com.codegym.task.task07.task0718; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; /* Checking the order */ public class Solution { public static void main(String[] args) throws IOException { //write your
    • 15.09.2018
    • 993views
    • 2comments
    0
  • Khurram
    Level 16
    Lahore
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Resolved

    what seems to be the problem here?

    i have copied the exact code and it runs perfectly fine in IntelliJ, but here it is not accepting the solution, can anyone suggest what the problem might be
    • 08.09.2018
    • 1401views
    • 2comments
    0
  • Neha Anjum
    Level 6
    Hyderabad
    Question about the task Implement the fight method
    Java Syntax, Level 5, Lesson 5
    Resolved

    Help please...

    public class Cat { public String name; public int age; public int weight; public int strength; public static void main(String[] args) { Cat cat1 = new Cat(); cat1.age = 4; cat1.strength = 20; cat1.weight = 20; cat1.name = "Cat1";
    • 18.09.2018
    • 1525views
    • 4comments
    0
  • DuesVultKek
    Level 7
    Jacksonville
    Question about the task Multiplication table
    Java Syntax, Level 3, Lesson 6
    Resolved

    Help me please

    The code is perfect except the lines printed are 11. Give my code a try (Don't verify it, instead run it) and you'll see what I mean. And if you do, there's a space above the 1 2 3 ... 9 10 which is somehow I don't know how to remove that one. Please let us help each other.
    • 26.08.2018
    • 1157views
    • 4comments
    0
  • Sandeep
    Level 3
    Question about the task Parenthetical brainteaser
    Java Syntax, Level 3, Lesson 4
    Resolved

    can anybody help me ! Am getting output as 539

    package com.codegym.task.task03.task0306; /* Parenthetical brainteaser */ public class Solution { public static void main(String[] args) { System.out.println((1+(2*3+4))*5+6*(7+8*9)+10); } }
    • 15.08.2018
    • 1709views
    • 3comments
    0
  • Chinmay Sawant
    Level 0
    Mumbai
    Question about the task Bugs and features
    Java Syntax, Level 0, Lesson 8
    Resolved

    How to solve these?

    PLEASE help me out
    • 13.08.2018
    • 1057views
    • 11comments
    0
  • Anonymous #297745
    Level 3
    Jaurian
    Question about the task Choose healthy food! Choose fruit!
    Java Syntax, Level 1, Lesson 8
    Archived

    Need help

    Please help me to solve this code System.out.println("Two roads diverged in a yellow wood,"); System.out.println("And sorry I could not travel both"); System.out.println("And be one traveler, long I stood"); System.out.print(" ");
    • 14.09.2018
    • 814views
    • 5comments
    0
  • Neha Anjum
    Level 6
    Hyderabad
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Resolved

    Why am i getting this error

    import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); int a = Integer.parseInt(bufferedReader.readLine()); int b = Integer.parseInt(buffer
    • 17.09.2018
    • 1095views
    • 9comments
    0
  • Manimegalai
    Level 3
    Kanchipuram
    Question about the task Hello, StarCraft!
    Java Syntax, Level 3, Lesson 4
    Under discussion

    Whats wrong in my code

    public class Solution { public static void main(String[] args) { Zerg z1=new Zerg(); z1.name="aa"; Zerg z2=new Zerg(); z2.name="aa"; Zerg z3=new Zerg(); z3.name="aa"; Zerg z4=new Zerg(); z4.name="aa"; Zerg z5=new Zerg();
    • 17.09.2018
    • 1161views
    • 3comments
    0
  • Neha Anjum
    Level 6
    Hyderabad
    Question about the task Sum of the digits of a three-digit number
    Java Syntax, Level 3, Lesson 12
    Resolved

    Why am I getting this error "The program ran too long and was closed"..?

    public class Solution { public static void main(String[] args) { System.out.println(sumDigitsInNumber(546)); } public static int sumDigitsInNumber(int number) { int sum ; int n; sum =0; while(number >=0){ n=number%10;
    • 17.09.2018
    • 1316views
    • 1comment
    0
  • sohaila
    Level 2
    Karachi
    Under discussion

    i cant find the error although the output text is same but cant meet the last condition. recommendation is typo error. conditions are:Write a program that displays "It's not a bug—it's a feature." Example output: It's not a bug—it's a feature. Requirements: 1. The program should output text. 2. T

    package com.codegym.task.task01.task0106; /* Bugs and features */ public class Solution { public static void main(String[] args) { System.out.print("It's not a bug"-it's a feature."); } }
    • 17.09.2018
    • 827views
    • 3comments
    0
  • Anonymous #220266
    Level 0
    Hyderabad
    Question about the task No comments needed
    Java Syntax, Level 0, Lesson 8
    Under discussion

    Help me to solve

    It is right or wrong
    • 27.08.2018
    • 903views
    • 6comments
    0
  • Anonymous #260075
    Level 2
    Mumbai
    Question about the task Where does a Person come from?
    Java Syntax, Level 2, Lesson 2
    Under discussion

    i didn't get it plz help.

    public class Solution { public static void main(String[] args){ Person Person = new Person();//write your code here } public static class Person { String name; int age; int weight; int money;//write your code here
    • 16.09.2018
    • 1208views
    • 1comment
    0
  • Anonymous #260075
    Level 2
    Mumbai
    Question about the task Display the square of a number
    Java Syntax, Level 1, Lesson 3
    Under discussion

    how to solve this code.i didn't get output.plz reply.

    public class Solution { public static int number = 25; public static void main(String[] args) { int number = (25); System.out.print(number*number); } }
    • 07.09.2018
    • 868views
    • 3comments
    0
  • Shahanshah Alam
    Level 9
    Mohali
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion

    help

    what is wrong in this code
    • 16.09.2018
    • 1011views
    • 4comments
    0
  • Madhu Prabha
    Level 7
    Gurgaon
    Question about the task Deep and pure love
    Java Syntax, Level 3, Lesson 8
    Resolved

    Missing spaces

    I'm not getting the output.Help please?
    • 15.08.2018
    • 1372views
    • 2comments
    0
  • Ryon
    Level 9
    Manila
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Resolved

    Not showing any output

    package com.codegym.task.task07.task0712; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; /* Shortest or longest */ public class Solution { public static void main(String[] args) throws Exception { //write you
    • 16.09.2018
    • 885views
    • 1comment
    0
  • Jaisingh
    Level 14
    Hyderabad
    Question about the task Minimum of two numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion

    whats wrong with this solution . it display the correct answer . but server is not accepting it . plz tell me whats mistake

    • 15.09.2018
    • 1256views
    • 2comments
    0
  • gery
    Level 9
    Islamabad
    Under discussion

    verfication failed but runs fine

    BufferedReader b = new BufferedReader(new InputStreamReader(System.in)); int a = Integer.parseInt(b.readLine()); int b1 = Integer.parseInt(b.readLine()); if (a
    • 14.09.2018
    • 826views
    • 3comments
    0
  • Prahlad Singh
    Level 6
    Mumbai
    Question about the task Price of apples
    Java Syntax, Level 4, Lesson 1
    Under discussion

    pls help

    • 13.09.2018
    • 1119views
    • 4comments
    0
  • Navaneeth H
    Level 4
    Canton
    Question about the task Where does a Person come from?
    Java Syntax, Level 2, Lesson 2
    Under discussion

    Can we create two public class in the same Solution.java file.!!!

    Can we create two public class in the same Solution.java file.!!!
    • 12.09.2018
    • 836views
    • 3comments
    0
  • Zubin Nair
    Level 7
    New Delhi
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived

    Fourth requirement is not satisfied

    Fourth requirement is not satisfied here What is the problem here ?? And the recommendation from the mentor was that I have used too many methods in the class but i have used only one method that is max What is the problem here ?? Pls reply asap
    • 14.09.2018
    • 870views
    • 3comments
    0
  • Vikas
    Level 3
    Delhi
    Question about the task As simple as 2+2
    Java Syntax, Level 1, Lesson 8
    Resolved

    Java Syntax, Level 1, Lesson 8

    now what i have 2 do i tried all methods but i'm not able to get answer plz help me to get answer.
    • 31.07.2018
    • 1357views
    • 7comments
    0
  • mane
    Level 2
    Question about the task Square of a number
    Java Syntax, Level 1, Lesson 8
    Archived

    how to solve

    how to solve
    • 01.08.2018
    • 1189views
    • 12comments
    0
  • Atif Saeed
    Level 7
    Islamabad
    Question about the task Drawing a rectangle
    Java Syntax, Level 4, Lesson 13
    Resolved

    help........

    what is the error plz tel........
    • 12.09.2018
    • 1607views
    • 4comments
    0
  • Aruna
    Level 7
    Coimbatore
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Under discussion

    what is the 2nd requirement ?

    what is the 2nd requirement ?
    • 09.09.2018
    • 876views
    • 10comments
    0
  • Kwyn ART
    Level 0
    Mumbai
    Question about the task Bugs and features
    Java Syntax, Level 0, Lesson 8
    Resolved

    The last condition not verifying what's problem in my code help

    Condition didn't fulfill
    • 07.09.2018
    • 870views
    • 1comment
    0
  • Nehal Abubakar
    Level 7
    Karachi
    Question about the task The required number
    Java Syntax, Level 2, Lesson 5
    Resolved

    Help me out plzz

    I can't trace my error it's showing that its providing the correct result but comment as many lines as possible.
    • 08.08.2018
    • 1624views
    • 9comments
    0
  • kirti
    Level 8
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 7
    Resolved

    error

    why it is not working??
    • 11.09.2018
    • 2065views
    • 6comments
    0
  • Somya Gupta
    Level 4
    Vrindavan
    Question about the task Multiplication table
    Java Syntax, Level 3, Lesson 6
    Resolved

    plzzz

    package com.codegym.task.task03.task0314; /* Multiplication table */ public class Solution { public static void main(String[] args) { int ans; for(int i=1;i<=10;i++) { for(int j=1;j<=10;j++) { ans=i*j;
    • 22.08.2018
    • 1401views
    • 3comments
    0
  • 1
  • ...
  • 340
  • 341
  • 342
  • 343
  • 344
  • 345
  • 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.