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
Harika Yantrapragada
Level 7
Hyderabad
Question about the task
Implement the fight method
Java Syntax
,
Level 5
,
Lesson 5
Resolved
can you help me with this code
logic
12.11.2018
1574
views
1
comment
0
Rad
Level 8
Maidstone
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
i need help
i can't rectify my problem give me solution
12.11.2018
1060
views
2
comments
0
Aswini
Level 4
Chennai
Question about the task
Square of a number
Java Syntax
,
Level 1
,
Lesson 8
Archived
Help me to solve this
Square of a number Level 1, Lesson 8 public class Solution { public static void main(String[] args) { //write your code here int a = 5; int result = sqr(5); System.out.println (sqr(int a)); } public static int sqr(int a) { return a * a; } }
12.11.2018
1234
views
3
comments
0
Joyonta Saha
Level 31
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Code is giving correct result however not passing the verification. Need Help!
Code is giving correct result however not passing the verification. Need Help!
21.08.2018
2063
views
2
comments
2
M suleman
Level 20
Lahore
Question about the task
Horse racing
Java Core
,
Level 6
,
Lesson 5
Archived
plz help
public static int calculateHorsesFinished(List horses) throws InterruptedException { int finishedCount = 0; //write your code here while(true){ if(isFinished()){ finishedCount++;} else if(!isFinished()){ System.out.println("Waiti
09.11.2018
1334
views
2
comments
0
Mightybjorn
Level 3
Montreal
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
Not sure why code is failing verification
Can't figure out where my code is failing. Can anyone give me a hint? The complier is outputting: variable ans might not have been initialized: Solution.java, line: 20, column: 16 com/codegym/task/task02/task0216/Solution.java:20: error: variable ans might not have been initialized retur
05.11.2018
1418
views
4
comments
0
Amar Kumar
Level 2
Bhilwara
Question about the task
I think being a programmer is cool
Java Syntax
,
Level 0
,
Lesson 3
Under discussion
How to print it in 34 character?
import java.util.*; class abc { public static void main(String [] args) { System.out.print("I think being a programmer is cool"); } }
09.11.2018
1750
views
2
comments
0
rishabh
Level 2
Noida
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
The print method should display the string 4 times. Each time, on a new line.
In the print method, display the passed string 4 times. Each time, on a new line.
18.10.2018
1731
views
12
comments
0
Jacqueline Lim
Level 9
Makati
Question about the task
Going national
Java Syntax
,
Level 8
,
Lesson 11
Archived
???
What's wrong?
08.11.2018
1313
views
3
comments
0
Vishwambhar Awagan
Level 8
Pune
Question about the task
Console-based piggy bank
Java Syntax
,
Level 5
,
Lesson 12
Resolved
I didnt get why it is not working
..
08.10.2018
1782
views
2
comments
0
shobi khan
Level 18
Lalian
Question about the task
Duplicating words
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
Plz help me
how can i verify the third condition
09.11.2018
1579
views
2
comments
0
SAYAN SAMANTA
Level 10
Bangalore
Question about the task
Distance between two points
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
how to resolve this?
package com.codegym.task.task06.task0609; /* Distance between two points */ public class Util { public static double getDistance(int x1, int y1, int x2, int y2) { int a = (x2 - x1); int b = (y2 - y1); int p = a*a + b*b; double s = Math.sqrt(double p);
21.08.2018
1664
views
3
comments
0
Harika Yantrapragada
Level 7
Hyderabad
Question about the task
Positive number
Java Syntax
,
Level 4
,
Lesson 7
Resolved
may I know what's wrong with this code
It's giving correct output while running in eclipse
08.11.2018
1685
views
5
comments
0
Nirake_
Level 8
Mumbai
Question about the task
2 + 3 = 5
Java Syntax
,
Level 0
,
Lesson 8
Under discussion
"how do I rectify it ..
I am not able to do it.
08.11.2018
1135
views
1
comment
0
Sharmila
Level 1
Question about the task
2 + 3 = 5
Java Syntax
,
Level 0
,
Lesson 8
Under discussion
i want to complete the task.. please help me
/* 2 + 3 = 5 */ public class Solution { public static void main(String[] args) { /* on screen to display the following line */ int a = 2; int b = 3; int c = a+b; String s1 = " plus "; String s2 = " is equal to "; // System.out.print("2 plus 3 is equal to to 5");
08.11.2018
1426
views
1
comment
0
Aswini
Level 4
Chennai
Question about the task
My young friend
Java Syntax
,
Level 0
,
Lesson 4
Under discussion
Try it
public class Solution { public static void main(String[] args) { //write your code here int a= 3126; int b= a-8; System.out.println("my friend's birth year" + b); } }
08.11.2018
2067
views
1
comment
0
Akash Sharma
Level 5
Delhi
Question about the task
18+
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
what is the error
package com.codegym.task.task04.task0422; /* 18+ */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader buffer = new BufferedReader(new InputStreamReader (System.in)); String a = buffer.readLine(); String
29.10.2018
1313
views
5
comments
0
hidden #10362262
Level 9
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
I passed the task, but it won't run in IntelliJ
What do I need to do to fix the error message at the bottom in IntelliJ? It says: Error:Cannot run program "C:\Program Files\Java\jdk-10.0.1\bin\java.exe" (in directory "C:\Users\Thomas Yates\.IdeaIC2018.1\system\compile-server"): CreateProcess error=2, The system cannot find the file specified
08.11.2018
1440
views
1
comment
0
Fadi AlSaidi
Level 13
Carrollton
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Resolved
correct output, but can't verify
I tried all kind of real numbers and the program works correctly.. can any one spot an issue?
07.11.2018
1452
views
2
comments
0
joe
Level 3
Kigali
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
Can't resolve typo
What's wrong with this picture?
07.11.2018
1406
views
3
comments
0
Abhilash Ravichandran
Level 10
Kigali
Question about the task
Let's make the code do something useful!
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
Compilation error
cannot find symbol symbol: variable fileInputStream location: class com.codegym.task.task09.task0929.Solution: Solution.java, line: 32, column: 16 The line that initializes fileInputStream, line 17 is not being executed.
07.11.2018
1486
views
1
comment
0
Abhilash Ravichandran
Level 10
Kigali
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Resolved
Not able to satisfy the requirements but able to solve the problem
I have tried various inputs and got the corresponding results. Not satisfying requirements 2, 3 and 5 each time. The while loop is used to find the number of digits. n/(int)Math.pow(10,j) extracts each digit. Hints on other ways would be helpful.
03.09.2018
1370
views
1
comment
0
Arvind Prakhar
Level 7
Dhanbad
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
code problem
only the last condtion is not able to get fullfilled !! Plz help
04.11.2018
1351
views
3
comments
0
Syed Sarosh Farrukh
Level 7
Lahore
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Resolved
What is The issue in my CODE :/
HELP
04.11.2018
1476
views
6
comments
0
med
Level 1
Rabat
Question about the task
I think being a programmer is cool
Java Syntax
,
Level 0
,
Lesson 3
Under discussion
How to unlock levels
how to unlock levels
04.11.2018
1284
views
2
comments
0
Rad
Level 8
Maidstone
Question about the task
Ascending numbers
Java Syntax
,
Level 6
,
Lesson 11
Resolved
i need help
please check my code what is wrong please give me some information about the code
04.11.2018
2738
views
1
comment
0
hidden #10362262
Level 9
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
"unreported exception error" - help me understand this
package com.codegym.task.task04.task0416; /* Crossing the road blindly */ import java.io.*; public class Solution { public static void main(String[] args){ double minutesTyped = getUserInput(); lightColor(minutesTyped); } public static double getUserInput()
04.11.2018
1299
views
4
comments
0
Premachandran
Level 35
Ernakulam
Question about the task
Let's make the code do something useful!
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
what is wrong in my code pl help
InputStream fileInputStream = getInputStream(sourceFileName); OutputStream fileOutputStream = getOutputStream(destinationFileName); byte[] buffer = new byte[1024]; int length; while ((length = fileInputStream.read(buffer)) > 0) { fileOutputStream.writ
04.11.2018
1330
views
1
comment
0
Rad
Level 8
Maidstone
Question about the task
Cat relations
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
i need help
please check my code,what's wrong in my code ,last 2 conditions not satisfied
03.11.2018
1210
views
1
comment
0
Neha Anjum
Level 6
Hyderabad
Question about the task
Calculate the circumference of a circle
Java Syntax
,
Level 2
,
Lesson 2
Resolved
How do I do It..??
package com.codegym.task.task01.task0129; /* Calculate the circumference of a circle */ public class Solution { public static void main(String[] args) { printCircleCircumference(5); } public static void printCircleCircumference(int radius) { //write your code here
13.09.2018
1853
views
6
comments
0
Show more
1
...
352
353
354
355
356
...
366
Please enable JavaScript to continue using this application.