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
Wojtek
Level 23
Solec-Zdroj
Question about the task
Threads and bytes
Java Core
,
Level 8
,
Lesson 11
Under discussion
Can you tell me where i do a mistake?
public class Solution { public static Map resultMap = new HashMap(); public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String filename =""; while(reader.ready()){ if(
3/20/19
2233
views
8
comments
0
Lex Medeiros
Level 18
San Jose
Question about the task
18+
Java Syntax
,
Level 4
,
Lesson 6
Resolved
Could you point out what is wrong with my code?
Could someone tell me what I am doing wrong? Below is the code and here is the error I get: /* Use the keyboard to enter the name and age. If the age is less than 18, display "Grow up a little more". */ package com.codegym.task.task04.task0422; /* 18+ */ import java.io.*; public class Solu
3/21/19
1590
views
5
comments
0
vikr@nt
Level 9
Cincinatti
Question about the task
Remove and insert
Java Syntax
,
Level 7
,
Lesson 6
Resolved
What is wrong with my code?
I'm basically getting two errors and I've seen the inputs from previous help questions. I'm doing pretty much same. Anybody can you please guide me 1. Remove the last string and insert it at the beginning. Rinse and repeat 13 times. I'm doing it here : for (int i = 0; i<13; i++){ St
2/9/19
2047
views
6
comments
1
Anirban Mitra
Level 2
Kolkata
Question about the task
Don't feel like it? Do it anyway.
Java Syntax
,
Level 1
,
Lesson 8
Resolved
what's wrong here
string s ="If you feel like it,do the task.If you don't feel like it.do it anyway"; System.out.println(s); System.out.println(s); System.out.println(s); System.out.println(s); System.out.println(s); System.out.println(s); System.out.println(s); System.out.println(s); System.out.println(s); System.ou
3/21/19
1812
views
5
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Synchronized notes: part 2
Java Core
,
Level 7
,
Lesson 4
Under discussion
I have general question not about this task.
If we want synchronized something in some method can we always use word synchronized after access modifiers in method instead of synchronized block? I am not sure but i suppose it is much more convenient.
3/1/19
1420
views
1
comment
0
Hashirama
Level 26
Port-Harcourt
Question about the task
Your own FileWriter
Java Core
,
Level 9
,
Lesson 11
Archived
Hi guys
Please what am I doing wrong? The mentor says: 1. Be sure that the FileConsoleWriter class's write(char[] cbuf, int off, int len) throws IOException method also writes the data to the console. 2. Be sure that the FileConsoleWriter class's write(String str, int off, int len) throws IOException method
3/12/19
2139
views
1
comment
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
CRUD
Java Core
,
Level 7
,
Lesson 10
Under discussion
How properly solve last and 3rd requirement ?
need hint
3/12/19
1879
views
3
comments
0
Julián Orellana
Level 20
Guayaquil
Question about the task
Reading and writing to a file: CodeGym
Java Core
,
Level 10
,
Lesson 2
Under discussion
help me , i have this error : Check why an exception occurs in the save/load methods.
package com.codegym.task.task20.task2002; import java.io.*; import java.util.ArrayList; import java.util.List; import java.util.Date; import java.util.*; import java.text.*; import java.lang.IllegalArgumentException; /* Reading and writing to a file: CodeGym */ public class Solution { publ
3/13/19
1771
views
1
comment
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Symbol frequency
Java Core
,
Level 8
,
Lesson 11
Under discussion
How to resolve this task?
I tried to resolve this task in this way bacause i could not find online other way
3/19/19
1527
views
1
comment
0
Darshan SP
Level 2
Mysuru
Under discussion
task01 : task0127
public class Solution { public static void main(String[] args) { //write your code here int b = sqr(5); System.out.println("the square of 5" +b); } public static int sqr(int a) { return a * a; } } please help that i did that program to work but failed
3/20/19
1630
views
3
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Finding data inside a file
Java Core
,
Level 8
,
Lesson 11
Under discussion
What should i improve in my solution?
need help
3/20/19
1306
views
1
comment
0
Ryan
Level 14
Ashburn
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
Working But Req 3 Still Fails
I have tested this program and it always displays the longest string(s). I also passed the display of multiple strings if multiple are longest, I am not sure how I can meet req 4 and not req 3. Below is the input (lines 1-5) and output (line 6) of the test another question was told to run: qwe qwe
2/16/19
2064
views
1
comment
1
Arko Sarkar
Level 8
Mumbai
Question about the task
Min and max in arrays
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
What is wrong here?
For values 1 to 20, I'm getting output: 20 1 So what's the error?
9/1/18
2516
views
7
comments
0
Akash sah
Level 8
Kathmandu
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
where is the problem
i cant find the mistake
2/16/19
1616
views
4
comments
0
jaime
Level 5
Barcelona
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
What is wrong? I really don't get it.
What is wrong? I really don't get it.
2/6/19
2229
views
5
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Notepad for new ideas
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
i do not know how to resolve 3rd point
need help
1/8/19
2069
views
5
comments
0
Derek
Level 11
Apex, NC
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Resolved
not passing 'verify', but seems to run correctly.
Seems to work when I run, but not passing the 'verify' stage. Any ideas? package com.codegym.task.task04.task0415; /* Rule of the triangle "The triangle is possible." - if a triangle with these sides could exist. "The triangle is not possible." - if a triangle with these sides cannot exist. */
3/19/19
2213
views
1
comment
0
Andrew
Level 29
Seattle
Question about the task
Word search
Java Core
,
Level 10
,
Lesson 10
Resolved
What am I missing?
Any clues as to why it's not verifying? Also I can't think of a way to avoid all the repeated code. Thoughts?
3/19/19
1662
views
1
comment
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Reversing a file
Java Core
,
Level 8
,
Lesson 5
Under discussion
Can you give me some hint how to reverse order properly?
need help
3/13/19
2327
views
1
comment
0
Douglas
Level 4
Kano
Question about the task
As simple as 2+2
Java Syntax
,
Level 1
,
Lesson 8
Under discussion
need explanation
task01.task0128 - As simple as 2+2 pleas explain this task. thanks.
3/17/19
1445
views
1
comment
0
Aakash potepalli
Level 22
Bangalore
Under discussion
what does this mean (A constructor has no type) ?
i am not able to understand this line please help me A constructor has no type.
3/18/19
1470
views
1
comment
0
Lox Loxyms
Level 19
Lodz
Under discussion
IntelliJ IDEA - is it optional
Hello, Is it necessary to use IntelliJ IDEA software? I learn with CodeGym on company's computer and have no possibility to install any software. Will I miss a lot if I don't use IntelliJ IDEA? Are some tasks only present in IntelliJ IDEA ?
3/19/19
1893
views
5
comments
0
Kisszol
Level 15
Toeroekbalint
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Resolved
Helpu min, please help me
Esperanto: Mi havas problemon. La ciklo el linio 40 al linio 49 sxaltas en la linio 46 unufoje, kaj ne ne plu. La programo forigas nur unu linion el "map" strukturo ne tri. Mi ne komprenas kial. English: I have a problem. The cycle from line 40 to 49 jumps into the line 46 only once. The prog
3/19/19
2335
views
4
comments
0
Ovo Leslie
Level 26
Lagos
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Error with input code
I can't seem to get my input codes right for my last two task. Its giving me this error But it works on Intelli J I DEA. However on Intelli J IDEA, I can't run any current task. Anytime i click run Task03\03 ends up running no matter what I do. Coding today had been frustrating. Help needed!
2/12/19
1643
views
5
comments
0
Fadi AlSaidi
Level 13
Carrollton
Question about the task
Who's that smarty?
Java Core
,
Level 3
,
Lesson 2
Archived
Hmmm , no uproar from the ladies over this task!!!!!
anyone?
3/1/19
2033
views
1
comment
0
Jerry
Level 1
Cape Town
Under discussion
2 plus 3 is equal to 5
I have been trying to complete this task, but am struggling to view the task, so as to continue with it - please help.
2/28/19
1211
views
1
comment
0
Anonymous #10422934
Level 5
Question about the task
Expressing ourselves more concisely
Java Syntax
,
Level 7
,
Lesson 6
Archived
Code works, does not validate req#4
Hi! :) Any ideas whats wrong with this? :) I have no clue at this point. The "If several strings are the shortest, then you need to display each of them on a new line." While running it works just fine as required.
3/18/19
1762
views
5
comments
0
Jeff Jeffy
Level 15
Irvine
Question about the task
A name is a name
Java Syntax
,
Level 4
,
Lesson 16
Resolved
WHERE IS THE TYPO
I dont see it. Am I blind?
3/19/19
2063
views
1
comment
0
past cham
Level 6
Delhi
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Resolved
help to solve
how to solve
3/18/19
1581
views
2
comments
0
Nitin
Level 5
Question about the task
Adding
Java Syntax
,
Level 4
,
Lesson 16
Under discussion
Help!
3/12/19
1716
views
5
comments
0
Show more
1
...
339
340
341
342
343
...
374
Please enable JavaScript to continue using this application.