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
  • kapil
    Level 12
    delhi
    Resolved
    below code solution not being verifiedDecent pay Using a loop to display the following phrase one hundred times: "I will never work for peanuts. Amigo" Display each value on a new line. Requirements: 1. The program should not read text from the keyboard. 2. The program should display text on the screen. 3. The program should display t
    • 10/24/18
    • 1439views
    • 1comment
    0
  • niki4etoo
    Level 8
    Ruse
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Under discussion
    Where I made a mistake ?When I run the code, it seems that the output is proper.
    • 9/11/18
    • 1643views
    • 5comments
    0
  • Neha Anjum
    Level 6
    Hyderabad
    Question about the task A name is a name
    Java Syntax, Level 4, Lesson 16
    Resolved
    Whats the error for..??import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String name = reader.readLine(); int dd = Integer.parseInt(rea
    • 9/17/18
    • 2533views
    • 5comments
    0
  • Hackaholic5069
    Level 2
    Wasilla
    Under discussion
    why is this not read correctly by the compiler?for task "display the square of a number" i run public class Solution { public static int number = 25; public static void main(String[] args) { int a = 5; int b = a * a ; System.out.println(b); } }; and it says that it is not a square... what is wrong here the
    • 10/26/18
    • 1388views
    • 1comment
    0
  • Usman Jutt
    Level 4
    Pir Mahal
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Under discussion
    this is the answer when i run it.Plz help to solve it."null wil take over the world in null years. Mwa-ha-ha"?help me
    • 10/26/18
    • 1872views
    • 7comments
    0
  • Rad
    Level 8
    Maidstone
    Question about the task Improving functionality
    Java Syntax, Level 5, Lesson 12
    Resolved
    i need helpplease check last condition is not satisfied
    • 10/26/18
    • 2212views
    • 1comment
    0
  • Swati
    Level 8
    Pune
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Resolved
    why giving me null value?can anyone help?I am getting null value,when i run this simple program.I am not getting where is problem?
    • 10/25/18
    • 1803views
    • 3comments
    0
  • Guruprasad
    Level 1
    Bangalore
    Question about the task My young friend
    Java Syntax, Level 0, Lesson 4
    Under discussion
    Unable to find the logicpublic class Solution { public static void main(String[] args) { int x = 3126; int y= 8; int z=x-y; System.out.println("my friend's birth year" +z); } } Unable to find the logic
    • 10/25/18
    • 1460views
    • 4comments
    0
  • Bilal Rao
    Level 2
    Lahore
    Question about the task We solemnly publish and declare these variables...
    Java Syntax, Level 1, Lesson 3
    Under discussion
    tell me solutionDeclare int variables called a and b. In the same line in which the variables are declared, immediately assign them different values. The values ​​can be any integers. Requirements: 1. Declare two int variables. 2. The variables must be named a and b. 3. The variables must be immediately assigned v
    • 10/26/18
    • 2012views
    • 1comment
    0
  • Rad
    Level 8
    Maidstone
    Question about the task Man and woman
    Java Syntax, Level 5, Lesson 12
    Resolved
    i need helpwhat's wrong in my code, last condition is not satisfied give me solution
    • 10/26/18
    • 1972views
    • 4comments
    0
  • Rad
    Level 8
    Maidstone
    Question about the task Console-based piggy bank
    Java Syntax, Level 5, Lesson 12
    Under discussion
    i need helpwhat is wrong in my code
    • 10/26/18
    • 1663views
    • 3comments
    0
  • Ahmed Saeed
    Level 18
    Baunatal
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Under discussion
    Can anyone please tell me, why is it not Verifying?Can anyone please tell me, why is it not Verifying?
    • 10/25/18
    • 1705views
    • 3comments
    0
  • sriharsha
    Level 1
    Hyderabad
    Question about the task 2 + 3 = 5
    Java Syntax, Level 0, Lesson 8
    Resolved
    pls helphow to print that command without add
    • 10/26/18
    • 1627views
    • 4comments
    0
  • M suleman
    Level 20
    Lahore
    Question about the task Animal identification
    Java Core, Level 2, Lesson 2
    Under discussion
    plz explain how to pass an object argument from methodpublic class Solution { public static void main(String[] args) { System.out.println(getObjectType(new Cow())); System.out.println(getObjectType(new Dog())); System.out.println(getObjectType(new Whale())); System.out.println(getObjectType(new Pig())); } pu
    • 10/25/18
    • 1992views
    • 1comment
    0
  • Swati
    Level 8
    Pune
    Question about the task More conversions
    Java Syntax, Level 3, Lesson 8
    Resolved
    error in return type intThe getFeetFromInches method must correctly return the number of full feet represented by the variable inches. What does this condition mean?giving me task failed for this condition.
    • 10/23/18
    • 2057views
    • 3comments
    0
  • Swati
    Level 8
    Pune
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Resolved
    giving nullgiving me null values for both name and no.not allow to enter through keyboard with this code.
    • 10/23/18
    • 1944views
    • 4comments
    0
  • badshah
    Level 4
    Tonk
    Question about the task The way of the Samurai
    Java Syntax, Level 3, Lesson 6
    Under discussion
    samurailevel 3 lesson 6 give me hint..about samurai symbols print in program
    • 10/25/18
    • 2246views
    • 2comments
    0
  • Mohsin Ahmed
    Level 2
    Karachi
    Question about the task Choose healthy food! Choose fruit!
    Java Syntax, Level 1, Lesson 8
    Archived
    Unable to complete package com.codegym.task.task01.task0135; /* Two roads diverged in a yellow wood */ public class Solution { public static void main(String[] args) { //write your code here System.out.println("Two roads diverged in a yellow wood,"); System.out.println("And sorry I cou
    • 9/11/18
    • 1755views
    • 8comments
    0
  • Michael Malone
    Level 2
    San Jose
    Question about the task Display the square of a number
    Java Syntax, Level 1, Lesson 3
    Resolved
    Please help feel as if I got everything to display correctly but its not recognizing my variable to be the square root. Can someone help me I feel like there is something major here that im missing. I am having a hard time completing because I don't know how to tell the computer to calculate the square root. package com.codegym.task.task01.task0140; /* Display the square of a number */ public class Solution {
    • 10/24/18
    • 2400views
    • 4comments
    0
  • Tayyab Mubeen
    Level 16
    Lahore
    Resolved
    help please...!!! numbers in String format.... import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; /* Task about algorithms */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    • 10/25/18
    • 1621views
    • 5comments
    0
  • Mihai Boicu
    Level 5
    Arlington
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 4
    Archived
    Not clear task requestThe request: "If the entered number is zero, display zero." is not clear because zero is in bold, one will expect the output to be the word "zero" while your verify is checking for "0" as a number.
    • 10/12/18
    • 1421views
    • 3comments
    0
  • Christopher Wager
    Level 12
    Westland
    Question about the task Somehow average
    Java Syntax, Level 4, Lesson 16
    Resolved
    No matter what I try, the oput is correct by I failed the taskI have tried to do this program two different ways. The 1st way I put the numbers in an Array and then pt the array in ascending order. Than I just print the middle number, because the middle number will satisfy all task that are given. If two of the numbers are the same, the middle number will alwa
    • 10/20/18
    • 1827views
    • 5comments
    0
  • Koushik Kintali
    Level 9
    Rayagada
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Under discussion
    How to solve?I am unable to get the logic behind the code
    • 10/24/18
    • 1720views
    • 1comment
    0
  • Swati
    Level 8
    Pune
    Question about the task Square of a number
    Java Syntax, Level 1, Lesson 8
    Archived
    Giving error while displaying square of a noStoring value of a method in one varible.but the error is : MAIN METHOD SHOULD DISPLAY RESULT OF A SQR() METHOD. program runs successfully.giving correct output.
    • 10/17/18
    • 1457views
    • 2comments
    0
  • Swati
    Level 8
    Pune
    Question about the task Square of a number
    Java Syntax, Level 1, Lesson 8
    Archived
    still giving error for displaying square of a no.Giving error as: The main method should display the result of a sqr method. Though the program is giving output.
    • 10/17/18
    • 1717views
    • 2comments
    0
  • Swati
    Level 8
    Pune
    Question about the task Escaping characters
    Java Syntax, Level 3, Lesson 6
    Resolved
    not understand this programHow to print required output for the program? not getting Hint provided....what does it mean?
    • 10/22/18
    • 1597views
    • 2comments
    0
  • Shahanshah Alam
    Level 9
    Mohali
    Question about the task Notepad for new ideas
    Java Syntax, Level 6, Lesson 11
    Under discussion
    help please...what causing error?public class Solution { public static void main(String[] args) { printIdea(new Idea()); idea.getDescription("name"); } public static void printIdea(Idea idea){ System.out.println(getDescription()); } public static class Idea{ String s;
    • 9/25/18
    • 1616views
    • 3comments
    0
  • Kabeer Rajoria
    Level 5
    Gwalior
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    What is wrong with this code?package com.codegym.task.task02.task0216; /* Minimum of three numbers */ public class Solution { public static int min(int a, int b, int c) { int m = 0; if (a<=b && b<=c) m = a; if (a<=b && b>= c) m = a; if (b<=a &
    • 10/21/18
    • 1595views
    • 1comment
    0
  • Jacqueline Lim
    Level 9
    Makati
    Question about the task More Sam-I-Am
    Java Syntax, Level 7, Lesson 9
    Resolved
    WHAT'S THE PROBLEM?How to suffice the fourth requirement? What's the error in my code?
    • 10/21/18
    • 2259views
    • 2comments
    0
  • rsingh04
    Level 6
    Mumbai
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Under discussion
    java.lang.NumberFormatException: Solution.java, method main, line: 17 what is wrong in my code 17 line
    • 10/19/18
    • 1631views
    • 4comments
    0
  • 1
  • ...
  • 362
  • 363
  • 364
  • 365
  • 366
  • ...
  • 374
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 © 2026 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2026 CodeGym