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
All quests
All levels
Any status
Questions about tasks
Hot
SAYAN SAMANTA
Level 10
Bangalore
Question about the task
Words in reverse
Java Syntax
,
Level 7
,
Lesson 9
Resolved
where is the problem situated?
public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String[] words = new String[5]; for(int i=0;i<5;i++){ words[i] = reader.readLine(); } ArrayList<String>
22.08.2018
1957
views
5
comments
0
Jeff Jeffy
Level 15
Irvine
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Resolved
Weird System.out.println(); bug?
Won't display user input.
27.01.2019
1740
views
13
comments
0
Djole
Level 41
Belgrade
Question about the task
Extending AmigoOutputStream
Java Core
,
Level 8
,
Lesson 8
Resolved
???
import java.io.*; import java.util.*; /* Extending AmigoOutputStream */ public class QuestionFileOutputStream implements AmigoOutputStream { private AmigoOutputStream or; public QuestionFileOutputStream (AmigoOutputStream aos){ this.or = aos; } public void flush() thr
07.03.2019
1620
views
2
comments
0
Hussain
Level 4
Frankfurt am Main
Question about the task
Family relations
Java Syntax
,
Level 2
,
Lesson 2
Resolved
Important question
Why it should be : woman.husband = man And not : man = woman.husband . . . need good explanation
12.02.2019
1579
views
4
comments
2
Niranjan Soni
Level 15
Bangalore
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
1st and last 2 conditions are not satisfying. Help please
I'm getting correct output but 1st and last 2 conditions are not satisfying.
29.09.2018
1266
views
2
comments
0
Harinath Reddy A
Level 7
Delhi
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
whats the error
public class Solution { public static void main(String[] args) throws Exception { //write your code here boolean t = true; while(t=true){ BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); String s = r.readLine();
05.03.2019
1122
views
4
comments
0
Santosh Kumar
Level 19
Gagret
Question about the task
Currencies
Java Core
,
Level 4
,
Lesson 8
Resolved
Everything is looking good but throwing error during verification
Everything is looking good but throwing error during verification
03.03.2019
1676
views
10
comments
0
Nitin
Level 5
Question about the task
Positive number
Java Syntax
,
Level 4
,
Lesson 7
Under discussion
Need Help!
08.03.2019
1267
views
2
comments
0
Nitin
Level 5
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Whats wrong in my code?
05.03.2019
1814
views
4
comments
0
Andrew
Level 29
Seattle
Question about the task
Introducing tags
Java Core
,
Level 9
,
Lesson 11
Resolved
I can get the example output. Not sure what I'm missing.
Do we need to solve for nested tags within nested tags? Please let me know if you thought of a simpler way to go about the solution.
05.03.2019
2236
views
3
comments
0
PATEL HET
Level 7
Ahmedabad
Question about the task
Create a Rectangle class
Java Syntax
,
Level 5
,
Lesson 9
Under discussion
please help me, i am not getting from a long time
i am not getting please can anyone send me the code and also check my code where is mistake. package com.codegym.task.task05.task0520; /* Create a Rectangle class */ public class Rectangle { //write your code here int top,left,width,height; public void initialize(int top,int left,i
15.02.2019
1751
views
4
comments
0
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
15.02.2019
1408
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
02.03.2019
1334
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?
27.09.2018
1721
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
04.02.2019
1449
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
03.03.2019
1254
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
03.03.2019
1587
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
26.11.2018
1498
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
19.08.2018
2018
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
04.03.2019
1210
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?
03.03.2019
1773
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
08.01.2019
1723
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
11.12.2018
1560
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!!
01.03.2019
1435
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?
01.03.2019
1740
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
10.02.2019
1959
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.
30.01.2019
1240
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
28.02.2019
1177
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.
27.07.2018
1894
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.
18.09.2018
1503
views
6
comments
0
Show more
1
...
339
340
341
342
343
...
371
Please enable JavaScript to continue using this application.