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
Deepak Joshi
Level 17
Nainital
Question about the task
Task about algorithms
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Whats Wrong with this code?
Why the last condition is not satisfying.
03.05.2019
1423
views
1
comment
0
Henk
Level 19
Pretoria
Question about the task
Month number
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Please have a quick look ?
Not sure why it doesn't accept it. Says I have a "typo" ?
02.05.2019
1681
views
3
comments
0
David Sunil
Level 4
kakinada
Question about the task
Price of apples
Java Syntax
,
Level 4
,
Lesson 1
Resolved
pls help
how to solve this
16.08.2018
2441
views
3
comments
0
Derek
Level 11
Apex, NC
Question about the task
Number of letters
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
Working, but doesn't verify
Seems to be working when I run it, but it's failing the last test. Any ideas?
02.05.2019
1189
views
2
comments
0
Ash Ka
Level 13
Calgary
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
Help! The program displays the shortest and longest string correctly whichever occurs first in the list but the requirements are failing
Running the program with the inputs is giving the correct answer but does not satisfy the conditions
02.05.2019
1818
views
5
comments
0
Ash Ka
Level 13
Calgary
Question about the task
To the top of the list
Java Syntax
,
Level 7
,
Lesson 6
Resolved
Cannot understand the requirement
Can someone please explain the requirement. Especially points 2 and 3 - Requirements: 1. Declare a string list variable and immediately initialize it. 2. The program should read 10 strings from the keyboard and add them to the list. 3. The program should add lines to the beginning of the list. 4. T
01.05.2019
1401
views
2
comments
0
Ash Ka
Level 13
Calgary
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Archived
What's wrong here ?
Program ran fine and checked with different inputs but task is failing verification
25.04.2019
1181
views
4
comments
0
dean
Level 8
Deutschland
Question about the task
Console-based piggy bank
Java Syntax
,
Level 5
,
Lesson 12
Resolved
Infinite loop
I get an infinite loop..i also tried with if and break but still got an infinite loop.. what am i missing thanks
02.05.2019
2320
views
2
comments
0
Martin Evtimov
Level 22
Chicago
Question about the task
Five winners
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
help
The code works perfectly fine. I don't know what the assignment wants.
02.10.2018
1435
views
4
comments
0
Oleh
Level 32
Kyiv
Question about the task
Those who love work need no entertainment
Java Multithreading
,
Level 6
,
Lesson 5
Resolved
Help
Console output
12.04.2019
1344
views
5
comments
0
Bogdan Codreanu
Level 23
Question about the task
Multiplication table
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
can someone tell me please what is wrong with my code ?
package com.codegym.task.task03.task0314; /* Multiplication table */ public class Solution { public static void main(String[] args) { int i , j ; for ( i=1 ; i<=10 ; i++ ) for (j=1 ; j<=10 ; j++) System.out.println(i * j + " ") ;
27.04.2019
1749
views
6
comments
0
Yudhi Pratama
Level 7
Jakarta
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
for (Integer x: list)
Hi, nothing wrong with my code. I'm just asking to clarify about something. public static void printList(List list) { for (Integer x: list) System.out.println(x); //write your code here } Is my understanding of the 2nd line as: "for every Integer x in the list, print x in every
02.05.2019
2597
views
3
comments
0
Connor
Level 8
Boston
Question about the task
Static cats
Java Syntax
,
Level 6
,
Lesson 11
Archived
Having trouble getting it to print the arraylist cats.
I'm not sure what I'm missing, could someone give me a tip?
01.05.2019
1486
views
2
comments
0
amous
Level 10
Question about the task
Hello, StarCraft!
Java Syntax
,
Level 3
,
Lesson 4
Resolved
Still not getting right . Anyone ??
It's showing error !!!
27.08.2018
1759
views
2
comments
0
Sandra Villani
Level 18
Question about the task
Request parser
Java Core
,
Level 5
,
Lesson 12
Resolved
Code seems correct but won't verify
I seem to be getting the correct output (unless I'm missing a corner case), but the task won't verify. What am I missing? Thanks!
01.05.2019
1530
views
2
comments
0
NaveenGS
Level 2
Mumbai
Question about the task
CodeGym. Learn once - use anywhere
Java Syntax
,
Level 1
,
Lesson 4
Under discussion
why its diplaying mistach text??
i have typed the sentence. but still its showing me an error.!
01.05.2019
1267
views
2
comments
0
Cinthya Cabanzo
Level 22
Bogota
Question about the task
Duplicating words
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
Why if my code works the verification fails?
HI Pals, I run successfully, duplicate the special words, but when I try to verify, this verification fails, but I cant see what is wrong. Input : alpha beta gamma 1 2 a ds alpha beta gamma result: alpha alpha beta beta gamma gamma 1 2 a ds alpha alpha beta beta gamma gamma
01.05.2019
1242
views
2
comments
0
Николай
Level 7
Mariupol'
Question about the task
Seasons on Terra
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
??? what's wrong? It does'n work
package com.codegym.task.task04.task0412; /* Positive and negative numbers */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String s = reader
30.04.2019
1058
views
2
comments
0
Deepak Joshi
Level 17
Nainital
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
What's wrong with this code?
26.04.2019
1401
views
6
comments
0
Bogdan Codreanu
Level 23
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
help
what am i missing ?
29.04.2019
1607
views
2
comments
0
Karan
Level 0
Peshawar
Question about the task
Amigo is very smart
Java Syntax
,
Level 0
,
Lesson 2
Resolved
How to write statment?
How to write statment ?
01.05.2019
1327
views
1
comment
0
Djole
Level 41
Belgrade
Question about the task
Chat (part 20)
Java Multithreading
,
Level 6
,
Lesson 15
Resolved
is it bugged?
public class ClientGuiModel extends Client{ private final Set allUserNames = new LinkedHashSet<>(); private String newMessage; public Set getAllUserNames() { return Collections.unmodifiableSet(new LinkedHashSet<>(allUserNames)); } public String getNewMessage
30.04.2019
1149
views
2
comments
0
Bogdan Codreanu
Level 23
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
help
????
29.04.2019
1465
views
2
comments
0
krishnaprasanna doddapaneni
Level 2
Hyderabad
Question about the task
Square of a number
Java Syntax
,
Level 1
,
Lesson 8
Archived
what is wrong in this code ,getting verification error like this(the main should call the sqr method with 5 as an argument).
public class Solution { public static void main(String[] args) { sqr(5); System.out.println(sqr(5)); } public static int sqr(int a) { return a * a; } }
31.01.2019
1855
views
3
comments
0
Anonymous #10428383
Level 12
Seattle
Question about the task
Flip the array
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
what is the trick here? my code works fine on notepad, it's compile here, but ask me to create a int array with 10, reverse, and i did.
package com.codegym.task.task07.task0704; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; import java.util.Collections; /* Flip the array */ public class Solution { public static void main(String[] args) throws Exception { //array int 10 ele
27.04.2019
1733
views
5
comments
0
MUHAMMAD SHAHZAIB
Level 2
Islamabad
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Resolved
whats the problem in this code
package com.codegym.task.task02.task0205; /* Pay raise */ public class Solution { public static void main(String[] args) { hackSalary(7000); } public static void hackSalary(int a) { int b = a+1000 ; System.out.println("Your salary is:" + b + "dollars per mont
25.11.2018
2942
views
9
comments
0
Joy Majumdar
Level 16
Kolkata
Question about the task
Going national
Java Syntax
,
Level 8
,
Lesson 11
Archived
How to
Char change
28.03.2019
1291
views
4
comments
0
Connor
Level 8
Boston
Question about the task
StringHelper class
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
Not working?
dunno why. I'm gonna take a break, I'm pretty brainfried at the moment. I've been at this since like 9 a.m. its about 830 p.m. now. I've had a few 20-30 minute breaks. But I think I need another one. Love y'all!
01.05.2019
1088
views
2
comments
0
Connor
Level 8
Boston
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
I'm not sure where the error is.
I made some changes recently and it seems to be outputting the correct amount of even and odd digits in the correct spots, with the correct output text. But I'm still getting error messages from the validation. EDIT: nvm, it seems that once I get up past 5 digit numbers it starts missing odd numbe
30.04.2019
1733
views
8
comments
0
Mike McKenna
Level 25
Wilmington
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
sorry if i ask for help should give max information
int m; if(a>b && a>c) min = a; else if(c>b && c>a) min = c; else if(b>c && b>a) min = b; return min;
29.04.2019
1307
views
1
comment
0
Show more
1
...
327
328
329
330
331
...
372
Please enable JavaScript to continue using this application.