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
Ask a question
Java 25
All quests
All levels
Any status
Questions about tasks
Hot
kapil
Level 12
delhi
Resolved
below code solution not being verified
Decent 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
1439
views
1
comment
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
1643
views
5
comments
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
2533
views
5
comments
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
1388
views
1
comment
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
1872
views
7
comments
0
Rad
Level 8
Maidstone
Question about the task
Improving functionality
Java Syntax
,
Level 5
,
Lesson 12
Resolved
i need help
please check last condition is not satisfied
10/26/18
2212
views
1
comment
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
1803
views
3
comments
0
Guruprasad
Level 1
Bangalore
Question about the task
My young friend
Java Syntax
,
Level 0
,
Lesson 4
Under discussion
Unable to find the logic
public 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
1460
views
4
comments
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 solution
Declare 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
2012
views
1
comment
0
Rad
Level 8
Maidstone
Question about the task
Man and woman
Java Syntax
,
Level 5
,
Lesson 12
Resolved
i need help
what's wrong in my code, last condition is not satisfied give me solution
10/26/18
1972
views
4
comments
0
Rad
Level 8
Maidstone
Question about the task
Console-based piggy bank
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
i need help
what is wrong in my code
10/26/18
1663
views
3
comments
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
1705
views
3
comments
0
sriharsha
Level 1
Hyderabad
Question about the task
2 + 3 = 5
Java Syntax
,
Level 0
,
Lesson 8
Resolved
pls help
how to print that command without add
10/26/18
1627
views
4
comments
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 method
public 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
1992
views
1
comment
0
Swati
Level 8
Pune
Question about the task
More conversions
Java Syntax
,
Level 3
,
Lesson 8
Resolved
error in return type int
The 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
2057
views
3
comments
0
Swati
Level 8
Pune
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Resolved
giving null
giving me null values for both name and no.not allow to enter through keyboard with this code.
10/23/18
1944
views
4
comments
0
badshah
Level 4
Tonk
Question about the task
The way of the Samurai
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
samurai
level 3 lesson 6 give me hint..about samurai symbols print in program
10/25/18
2246
views
2
comments
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
1755
views
8
comments
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
2400
views
4
comments
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
1621
views
5
comments
0
Mihai Boicu
Level 5
Arlington
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 4
Archived
Not clear task request
The 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
1421
views
3
comments
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 task
I 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
1827
views
5
comments
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
1720
views
1
comment
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 no
Storing 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
1457
views
2
comments
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
1717
views
2
comments
0
Swati
Level 8
Pune
Question about the task
Escaping characters
Java Syntax
,
Level 3
,
Lesson 6
Resolved
not understand this program
How to print required output for the program? not getting Hint provided....what does it mean?
10/22/18
1597
views
2
comments
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
1616
views
3
comments
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
1595
views
1
comment
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
2259
views
2
comments
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
1631
views
4
comments
0
Show more
1
...
362
363
364
365
366
...
374
Please enable JavaScript to continue using this application.