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
Okanlawon Oluwatobi Damilare
Level 9
Banjul
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
don't know why this code is not passing verification.
someone should please help.
26.03.2019
1083
views
2
comments
0
Thebe
Level 7
Benares
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Archived
How do I solve this
Why it doesn't produce maximum
16.01.2019
1617
views
4
comments
0
sirisha
Level 3
Bangalore
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
can someone help me out to fix this
help me out to solve
04.02.2019
1158
views
7
comments
0
Bazsó Benjámin
Level 20
Szombathely
Question about the task
The end
Java Syntax
,
Level 7
,
Lesson 12
Resolved
help pls
how can i pass 2nd and 4th req?
26.03.2019
1526
views
7
comments
0
Mark Harold Atabelo
Level 3
Tagbilaran
Question about the task
Repetition is the mother of all learning
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
how to implement the method?
package com.codegym.task.task02.task0218; /* Repetition is the mother of all learning */ public class Solution { public static void print3(String s) { //write your code here int s; for(int x=0;x<3;x++){ printf(print3); } } public static void main(Str
21.08.2018
1883
views
9
comments
0
Bazsó Benjámin
Level 20
Szombathely
Question about the task
Min and max in arrays
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
can this be solved using Arraylist
Instead of int[] list = new int[20]; can we solve this exercise using ArrayList list = new ArrayList(); ?
26.03.2019
1003
views
1
comment
0
daveman
Level 4
Budapest
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Whats wrong with this?
I tried this solution. It works in Eclipse, but not passed here.... THX
25.03.2019
1354
views
3
comments
0
ed de asis
Level 3
Poughkeepsie
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
plz help with solution.
hi what am i missing i realy cant get it... plz more advice... i cant move on to the new task for a like a long time now...
05.01.2019
1035
views
3
comments
0
Manoj Deo
Level 3
Mumbai
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
how?
how i am getting the right output but the the condition is not satisfied?
03.01.2019
1060
views
5
comments
0
Vidhya
Level 16
Sunnyvale
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
min of 3 numbers
i am unable to find the reason why the attached code is failing verification
25.01.2019
1650
views
7
comments
0
Anonymous #427092
Level 3
Erode
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
What's wrong with my code
23.03.2019
1182
views
3
comments
0
hacks patel
Level 20
Ahmedabad
Question about the task
Initializing cats
Java Syntax
,
Level 5
,
Lesson 7
Resolved
everything looks fine .. but I don't know what wrong with my code?
everything looks fine .. but I don't know what wrong with my code?
18.12.2018
2305
views
2
comments
0
Bishal Sharma
Level 3
Mumbai
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
what is wrong in this
if(a>b|| b>c){ return c; } if(c>b||b>a){ return a; } else{ return b; } }
28.11.2018
1056
views
4
comments
0
Ashutosh Sharma
Level 8
Delhi
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
How to assign the map value in the map variable in the main method.
package com.codegym.task.task08.task0816; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.*; /* Kind Emma and the summer holidays */ public class Solution { public static HashMap createMap() throws ParseException { D
24.03.2019
1425
views
3
comments
0
fady shaker
Level 7
Stuttgart
Question about the task
Adding
Java Syntax
,
Level 4
,
Lesson 16
Under discussion
help pleas
can someone tell me what is the problem the code works well
20.03.2019
1270
views
2
comments
0
Rusu Adelina
Level 17
Iasi
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
Why I get !!!!!The program should display the numbers in descending order----If you enter the numbers 2, 1, 2, then the program should display: 2 2 1.!!!!!! error?
public static void main(String[] args) throws Exception { Scanner ad = new Scanner(System.in); int num1 = ad.nextInt(); int num2 = ad.nextInt(); int num3 = ad.nextInt(); if (num1>num2 && num2>num3) {System.out.println(num1 + " " + num2 +
24.03.2019
1899
views
2
comments
0
kenny
Level 11
Vancouver
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
Why can't I declare the lists the way I declared it?
Thanks!
21.03.2019
1048
views
2
comments
0
Bazsó Benjámin
Level 20
Szombathely
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
whats wrong here
i dont understand why the output is giving me: love lyre love
24.03.2019
1009
views
2
comments
0
Bazsó Benjámin
Level 20
Szombathely
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Archived
program runs fine but wont verify
i cant see where is the problem
23.03.2019
1162
views
2
comments
0
Bazsó Benjámin
Level 20
Szombathely
Question about the task
Words in reverse
Java Syntax
,
Level 7
,
Lesson 9
Resolved
should verify i think
am i doing something wrong or is the verification system glitched?
24.03.2019
1483
views
2
comments
0
Tanish
Level 5
Mumbai
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 7
Under discussion
Please can someone rectify whats wrong?
import java.io.*; import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { //write your code here Scanner sc = new Scanner(System.in); int[] a = new int[3]; a[0] = sc.nextInt(); a[1] = sc.nextInt();
23.03.2019
1227
views
1
comment
0
Bazsó Benjámin
Level 20
Szombathely
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Resolved
whats wrong with my code?
i cant figure it out
24.03.2019
1380
views
2
comments
0
szu2
Level 2
Warsaw
Question about the task
As simple as 2+2
Java Syntax
,
Level 1
,
Lesson 8
Under discussion
Explanation needed
I do not understand how I can use sum function to add 2+2. Could anyone explain that step by step? For instance package com.codegym.task.task01.task0128; /* As simple as 2+2 public class Solution { public static void main(String[] args) { int a = 2; int b = 2; int c
22.03.2019
1431
views
6
comments
0
Hashirama
Level 26
Port-Harcourt
Question about the task
Let's make the code do something useful!
Java Syntax
,
Level 9
,
Lesson 11
Resolved
Help Please
How do I handle this one?
29.01.2019
2043
views
7
comments
1
szu2
Level 2
Warsaw
Question about the task
Only 20 will do
Java Syntax
,
Level 1
,
Lesson 4
Resolved
fails to verify
When I run this code without verification I get 20 but the system gives me 2 errors 1) Each of the variables (a, b, c, and d) in the line where the variable result is declared must be preceded by either a plus or minus sign. (BUT each of the variables is preceeded by a sign! 2) The plus and minus s
22.03.2019
1355
views
2
comments
1
Ryan
Level 14
Ashburn
Question about the task
Sorting even numbers from a file
Java Core
,
Level 3
,
Lesson 11
Archived
Console won't stop reading
The problem for me is that when I enter the file name and hit enter the console just continues to read until I stop the program. I cannot find anything in my code that would make this happen as I only user the reader object once. I'm stumped.
24.03.2019
2181
views
1
comment
0
Don Boody
Level 8
Victor
Question about the task
Three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
the indexes you should return are "1, 2, or 3," not "0, 1, or 2" as you might expect
Spent a lot of time struggling to figure out how my code could be wrong before realizing that the solution did not want a zero-based index. Now that I realize it, the example does make it clear (in 466 example, the solution is "1"), but I did not read carefully enough and wasted at least a half hour
15.02.2019
1312
views
3
comments
0
Angeget
Level 22
Potsdam
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
The code is working, i just need an improvement please
if (number1 >= number2 && number1 >= number3) { //num1 if (number2 >= number3) System.out.println(number1 + " " + number2 + " " + number3); else System.out.println(number1 + " " + number3 + " " + number2);
25.12.2018
2078
views
14
comments
0
Bazsó Benjámin
Level 20
Szombathely
Question about the task
Ascending numbers
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
dont see the problem here
when i try to run the program with example input 3,2,15,6,17 the output is [0, 0, 2, 6, 17], why is that? doesnt matter which numbers i enter there is always 2 numbers that get converted to 0
23.03.2019
1133
views
2
comments
0
Alexey
Level 7
Chernihiv
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Resolved
1st Requirement not working
Maybe im not undestend task. Help me please.
23.03.2019
1086
views
2
comments
0
Show more
1
...
330
331
332
333
334
...
366
Please enable JavaScript to continue using this application.