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
William Leininger
Level 5
Vancouver, WA
Question about the task
Drawing lines
Java Syntax
,
Level 4
,
Lesson 13
Under discussion
Not understanding
I don't understand how people are solving this problem (and some others) with nested for loops/multiple for loops. It'd make sense if say the variables carried through them or if I didn't have to define a variable in EACH for loop :S. I really dislike having to create a variable in every for loop. A
2/15/19
1538
views
3
comments
0
AK
Level 6
Mumbai
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
Why is the code below not passing verification?
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 here InputStream inputStream = System.in; InputStreamReader input
3/2/19
1581
views
3
comments
0
Yusra Ansari
Level 9
Karachi
Question about the task
Shuffled just in time
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
Can somebody give a sample input and sample output of this task?
Can somebody give a sample input and sample output of this task?
9/27/18
1852
views
5
comments
1
bri
Level 7
Sevilla
Question about the task
Creating cats
Java Syntax
,
Level 5
,
Lesson 9
Resolved
Meaning of initialize?
OK my understanding of the phrase: The class must have a constructor that takes a weight and color as arguments, and initializes all variables except the name and address. Meant to create something like: Cat(int weight, String color) this.color = color; this.weight = weight; age = 5; .. etc. EXCLUD
2/4/19
1605
views
6
comments
1
Mark Fernandez
Level 17
Mumbai
Question about the task
Duplicating words
Java Syntax
,
Level 7
,
Lesson 9
Resolved
unable to understand how to print PLS HELP
public class Solution { public static void main(String[] args) throws Exception { // Read strings from the console and declare an ArrayList here ArrayList list =new ArrayList(); BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); for(int i=0;i
3/3/19
1405
views
2
comments
0
AJITA SINGH
Level 2
Vishakhapatnam
Question about the task
Choose healthy food! Choose fruit!
Java Syntax
,
Level 1
,
Lesson 8
Archived
What is wrong in my code
System.out.println(String apple); System.out.println(String peach); This is what was set to me com/codegym/task/task01/task0135/Solution.java:15: error: ')' expected System.out.println(String apple); ^ com/codegym/task/task01/task0135/Solution.java:15: error: i
3/3/19
1743
views
5
comments
0
Love Patel
Level 1
San Leandro
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
Whats wrong with this code?
This code works when I dont use the word else in the line 17. but it doesnt work when I type the word else in line 17 package com.codegym.task.task02.task0216; /* Minimum of three numbers */ public class Solution { public static int min(int a, int b, int c) { //write your code here
11/26/18
1703
views
8
comments
0
SAYAN SAMANTA
Level 10
Bangalore
Question about the task
A programmer creates a person
Java Syntax
,
Level 5
,
Lesson 7
Under discussion
how to put a reference to a object?
package com.codegym.task.task05.task0514; /* A programmer creates a person */ public class Solution { public static void main(String[] args) { Person person1 = new Person(); Person person = person1; person1.initialize("Manika", 8); } static class P
8/19/18
2205
views
7
comments
0
SWAPNIL SHUKLA
Level 7
Baddi
Question about the task
Console-based piggy bank
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
Stuck pls help
Can't find the error
3/4/19
1351
views
1
comment
0
Jorge Sebastián Orellana
Level 5
Quito
Question about the task
Display right away
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
How to run the program in intellij.
I installed the plugin and everything works fine in intellij. But how can I just locally run the program to see screen outputs, etc, without sending the submission?
3/3/19
1913
views
2
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Ascending numbers
Java Syntax
,
Level 6
,
Lesson 11
Resolved
what is wrong here?
need help
1/8/19
1885
views
8
comments
0
ARYAN
Level 4
Pune
Question about the task
Contract
Java Syntax
,
Level 1
,
Lesson 6
Resolved
not getting the last condition?
i have written it correctly but its showing
12/11/18
1705
views
3
comments
0
Patson T Lawrence
Level 8
Kampala
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
would this code survive in all scenarios?
what am i missing in this code...verification failing!!
3/1/19
1586
views
3
comments
0
Dmitriy Konoplev
Level 11
Khabarovsk
Question about the task
Task about algorithms
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
Everything is working fine but there is an error somewhere.
what's the problem?
3/1/19
1921
views
1
comment
0
Akintilebo Olamilekan
Level 8
Osun State
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
help
public class Solution { private static List<String> strings; public static void main(String[] args) throws Exception { //write your code here strings = new ArrayList<String>(); int max = 0; Scanner sc = new Scanner(System.in); for (int y
2/10/19
2170
views
3
comments
0
Dilip Sahu
Level 2
Mumbai
Question about the task
We don't need any extra lines
Java Syntax
,
Level 1
,
Lesson 7
Under discussion
help please
You need to comment out the unused variables.
1/30/19
1379
views
4
comments
0
ROBERT KOSS
Level 3
Panama City
Question about the task
Don't feel like it? Do it anyway.
Java Syntax
,
Level 1
,
Lesson 8
Under discussion
i really do not get what im doing wrong
System.out.println("If you feel like it, do the task. If you don't feel like it, do it anyway."); System.out.println("If you feel like it, do the task. If you don't feel like it, do it anyway."); System.out.println("If you feel like it, do the task. If you don't feel like it, do it
2/28/19
1306
views
1
comment
0
Tamanajahoshy
Level 1
Question about the task
Display the square of a number
Java Syntax
,
Level 1
,
Lesson 3
Resolved
constantly knocks an error ((
Tell me, please, what mistake I made, already googled, I can not understand. All is correct, except "The displayed text must be the square of the variable number.
7/27/18
2053
views
19
comments
0
sowjanya sripada
Level 2
Hyderabad
Question about the task
Display the square of a number
Java Syntax
,
Level 1
,
Lesson 3
Resolved
whats wrong in my code.
9/18/18
1640
views
6
comments
0
Musa
Level 4
LAGOS
Question about the task
Display the square of a number
Java Syntax
,
Level 1
,
Lesson 3
Under discussion
EXPLAIN THE LOGICAL ERROR FOR MR
package com.codegym.task.task01.task0140; /* Display the square of a number */ public class Solution { public static int number = 25; public static void main(String[] args) { //write your code here int numb=25; int square=numb*numb; System.out.println(squa
2/14/19
1679
views
3
comments
0
Ghanashyam dahal
Level 2
Sapatgram
Question about the task
Display the square of a number
Java Syntax
,
Level 1
,
Lesson 3
Under discussion
task;
what is wrong with this? i got square of the number.
2/25/19
1386
views
5
comments
0
Bhagyashri Bangale
Level 2
Pune
Question about the task
A variable on our screen
Java Syntax
,
Level 1
,
Lesson 3
Under discussion
i am getting this error
cannot find symbol symbol: variable s location: class com.codegym.task.task01.task0110.Solution: Solution.java, line: 12, column: 28 this error of this code String name="abc"; System.out.println(s);
9/27/18
1489
views
5
comments
0
Nirake_
Level 8
Mumbai
Question about the task
A variable on our screen
Java Syntax
,
Level 1
,
Lesson 3
Under discussion
The only error I get is "the output text should be the value of the variables. "
package com.codegym.task.task01.task0110; /* A variable on our screen */ public class Solution { public static void main(String[] args) { String name="alex"; System.out.println("name= "+name); } } What is wrong in this solution.
10/16/18
1951
views
5
comments
0
Vijay Rangan
Level 5
Jakarta
Question about the task
Adding
Java Syntax
,
Level 4
,
Lesson 16
Under discussion
i dont know what to do
can any one say what's wrong in here
12/3/18
1551
views
3
comments
0
Mario
Level 7
Noida
Question about the task
Adding
Java Syntax
,
Level 4
,
Lesson 16
Under discussion
Please help !
please help me to solve this problem with some approach. I have tried many. Thanks in advance.
10/19/18
1473
views
4
comments
0
hidden #10424566
Level 7
Question about the task
Adding
Java Syntax
,
Level 4
,
Lesson 16
Under discussion
Every time i try verifying my solution i get this: The program ran too long and was closed!
My validation won't just go through . It works for all the other challenges, but for this particular one it doesn't. In the meantime somebody please tell me if this code will get verified if the system works again.
2/8/19
1662
views
4
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
One for all, all for one
Java Core
,
Level 6
,
Lesson 10
Under discussion
What is wrong in my code?
need help
2/27/19
1443
views
3
comments
0
Imran Hashmi
Level 6
York
Question about the task
Predictions
Java Syntax
,
Level 3
,
Lesson 8
Resolved
Codegym plug in
Hi There, it looks like my IDEA plugin has stopped syncing with the code gym site, as an example I have successfully completed two tasks but when I look at the remaining tasks then they have not been removed from my list. Also the Codegym site is not in sync. Any ideas? Thanks,
2/25/19
1342
views
3
comments
0
Andrew
Level 29
Seattle
Question about the task
Building a file
Java Core
,
Level 8
,
Lesson 11
Resolved
Tell me all the wrongs.
I've tested this successfully on my system and reviewed the other questions and responses. I believe I'm doing it right, but obviously not. My thoughts are that I'm not using the method(s) that it wants. Help?
2/25/19
2011
views
28
comments
0
Ganesh
Level 1
Pune
Question about the task
2 + 3 = 5
Java Syntax
,
Level 0
,
Lesson 8
Under discussion
inefficient dark matter
after excuting succesfully can't complete
2/13/19
1444
views
2
comments
0
Show more
1
...
342
343
344
345
346
...
374
Please enable JavaScript to continue using this application.