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
Ask a question
All quests
All levels
Any status
Questions about tasks
Hot
Austin
Level 3
Houston
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
Is this a bug why I am failing or am I doing something wrong?
The program is perfectly working, I am not sure why it is not passing me on the last criteria...
30.10.2018
1118
views
5
comments
0
kapil
Level 12
delhi
Question about the task
Remove and insert
Java Syntax
,
Level 7
,
Lesson 6
Resolved
my code is correct otherway but wrong another way>>>>>please help
for(int i = 0; i < 13; i++){ arr.add(0, arr.get(12)); //String d = arr.get(12); //arr.remove(12); //arr.add(0, d); } ......>>>> in above lines of code i used first statement inside loop and result was as per requirement......replacing of
30.10.2018
1195
views
4
comments
0
Ravi Kumar
Level 5
Hyderabad
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
query on order of data input
Enter the number and name from the keyboard. Display the following string: will take over the world in years. Mwa-ha-ha! Here's an example: Kevin will take over the world in 8 years. Mwa-ha-ha! The order in which the data is input matters a lot. ................ solution is worked for define ag
30.10.2018
1141
views
2
comments
0
WonderWoman
Level 8
Bangalore
Question about the task
Name register
Java Syntax
,
Level 4
,
Lesson 2
Under discussion
My code hasn't qualified for Condition #5, but still compiled and ran successfully, completing the task.
My code hasn't qualified for Condition #5, but still compiled and ran successfully, completing the task. Please execute to see the output of the print lines. Unable to attach the code snippet, since the task has already been solved.
05.09.2018
1692
views
5
comments
0
Md Sait
Level 4
Hyderabad
Under discussion
I forgot input process Logic and i am not able to understand it now, please help me
i am not able to understand the logic of these process, please help me to understand what these lines doing here step by step { InputStream c = System.in; Reader c1 = new InputStreamReader(c); BufferedReader bf = new BufferedReader(c1); name=bf.readLine();
29.10.2018
1106
views
2
comments
2
Mohit Swain
Level 9
Bhubaneswar
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
What is the diffrence? between the two plus signs?see gap and no gap, Code gym compiler is showing different colours of plus sign in both cases.
public class Main { public static void main(String[] args) { int a; System.out.println(a+1000); System.out.println(a + 1000); } }
28.10.2018
1447
views
4
comments
0
nithya lmk
Level 4
Bangalore
Question about the task
Number of days in the year
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
I cant seem to find out the error
public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String syr = reader.readLine(); int nyr = Integer.parseInt(syr); if( (nyr%4 == 0) && (nyr% 100 != 0)) {
28.08.2018
1527
views
3
comments
0
Vijay Rangan
Level 5
Jakarta
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Resolved
it's not even getting execute
package com.codegym.task.task03.task0318; /* Plan to conquer the world */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code herez InputStream inputStream = System.in; Reader InputStreamReader = new
05.10.2018
1199
views
6
comments
0
arindam mitra
Level 5
Gwalior
Question about the task
No comments needed
Java Syntax
,
Level 0
,
Lesson 8
Resolved
During compilation error occurs
public class Solution { public static void main(String[] args) { //int a,b; int x = 2; int y = 12; x = y - x ; y = y - x ; x = x + y ; // x = x * 3; // y = x + y; // x = y - x; // y = y - x; // int a = y;
24.10.2018
1234
views
2
comments
0
arindam mitra
Level 5
Gwalior
Question about the task
My young friend
Java Syntax
,
Level 0
,
Lesson 4
Resolved
What is wrong in this code?
/* My young friend */ public class Solution { public static void main(String[] args) { //int x,y,z; int x = 3126; int y = 8; int z = x - y; // String s = "my friend's birth year is " + "z"; System.out.print("z"); } }
23.10.2018
1578
views
2
comments
0
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
24.10.2018
1122
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.
11.09.2018
1343
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
17.09.2018
2121
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
26.10.2018
1062
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
26.10.2018
1335
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
26.10.2018
1828
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?
25.10.2018
1434
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
25.10.2018
1133
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
26.10.2018
1553
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
26.10.2018
1649
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
26.10.2018
1278
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?
25.10.2018
1390
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
26.10.2018
1290
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
25.10.2018
1553
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.
23.10.2018
1761
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.
23.10.2018
1495
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
25.10.2018
1863
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
11.09.2018
1244
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 {
24.10.2018
1959
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));
25.10.2018
1116
views
5
comments
0
Show more
1
...
354
355
356
357
358
...
366
Please enable JavaScript to continue using this application.