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
Rafia Rahman Chowdhury
Level 3
Chittagong
Question about the task
One cat isn't enough
Java Syntax
,
Level 2
,
Lesson 3
Under discussion
Can anybody define "instance" as stated in "Store each instance in its own variable." in simple words ?
package com.codegym.task.task02.task0208; /* One cat isn't enough */ public class Solution { public static void main(String[] args) { //write your code here Cat bella = new Cat(); Cat bimbim = new Cat(); } public static class Cat { } }
13.06.2019
1238
views
2
comments
0
James Archbold
Level 5
Cartagena
Question about the task
Come on, lucky seven!
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Why can't I use the method System.out.format()?
I understand that we have only seen the println() and print() methods, but why can't we use the format() method? It is easier to format strings, and the output would be the same as using println(" " + " ").
29.03.2019
2153
views
5
comments
1
John Michael Montuya
Level 10
Cebu City
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Resolved
Need tips for the correct algorithm :(
Ok, so it looks like my brain's processing power can only amount to this much. My code runs but it can only accurately calculate the first instance or occurrence of numbers in sequence e.g 1234556789 but will go very wrong when another set of number sequence show up on the list. I know I'm missing a
13.06.2019
1400
views
1
comment
0
smile
Level 7
Tainan
Question about the task
Day of the week
Java Syntax
,
Level 4
,
Lesson 4
Resolved
incompatible types: int cannot be converted to boolean.
What's the difference between "=" and "=="?
08.06.2019
4849
views
3
comments
0
Павел Артеменко
Level 41
Krasnodar
Question about the task
Words with numbers
Java Core
,
Level 9
,
Lesson 11
Resolved
Suggestions how to pass?
Tested ok with sequences: 1n n1 1n1 n1n But somehow requirements does not met (
27.04.2019
1315
views
2
comments
0
ddi
Level 18
Dortmund
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Resolved
What am i missing?
What am i missing?
05.06.2019
1571
views
7
comments
0
Shk1pper
Level 4
Sankt-Peterburg
Question about the task
Day of the week
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
WHY NOT?
Than I running this work....
12.06.2019
1668
views
2
comments
0
Serg
Level 23
Tyumen
Question about the task
Time for 10,000 get calls
Java Syntax
,
Level 8
,
Lesson 6
Resolved
I get calculations, but I get a validation error
I get calculations, but I get a validation error package com.codegym.task.task08.task0809; import java.util.ArrayList; import java.util.Date; import java.util.LinkedList; import java.util.List; public class Solution { public static void main(String[] args) { System.out.println(getIns
13.06.2019
1866
views
2
comments
0
SATHISHKUMAR PALANISAMY
Level 4
Coimbatore
Question about the task
Crazy eights
Java Syntax
,
Level 2
,
Lesson 5
Under discussion
You have declared too few variables
I am getting You have declared too few variables error. Please help?
10.06.2019
1330
views
3
comments
0
Cinthya Cabanzo
Level 22
Bogota
Question about the task
GCD
Java Core
,
Level 4
,
Lesson 8
Under discussion
Runs perfect but dont acomplish the verification
Runs perfect but dont acomplish the verification
12.06.2019
1194
views
1
comment
0
Merle Cato
Level 4
New York City
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 4
Archived
i need help with my code, do not know what is wrong with it.
package com.codegym.task.task04.task0412; /* Positive and negative numbers */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader(new InputStreamReader(Sy
16.01.2019
1426
views
3
comments
0
gery
Level 9
Islamabad
Question about the task
HashMap of cats
Java Syntax
,
Level 8
,
Lesson 3
Resolved
hashmap correction at line 17
public static void main(String[] args) throws Exception { String[] cats = new String[]{"Tiger", "Missy", "Smokey", "Marmalade", "Oscar", "Snowball", "Boss", "Smudge", "Max", "Simba"}; HashMap map = addCatsToMap(cats); for (Map.Entry pair : map.entrySet()) { Sys
27.09.2018
2580
views
8
comments
0
Mark Harold Atabelo
Level 3
Tagbilaran
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
WTF is wrong with this program cant enter name.
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 BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String
22.08.2018
1843
views
5
comments
0
Abhishek
Level 3
Pune
Question about the task
Sam I Am
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
What Combination is left?
package com.codegym.task.task03.task0313; /* Sam I Am */ public class Solution { public static void main(String[] args) { //write your code here String s="Say"; String t="I"; String u="Am"; System.out.println(s+t+u); System.out.printl
08.10.2018
2038
views
4
comments
0
Ed Maphis
Level 20
Painesville
Question about the task
Stopwatch
Java Core
,
Level 6
,
Lesson 7
Resolved
So why is this code failing?
Uhhm. Ok. So why is this code failing?
11.06.2019
1455
views
3
comments
0
Durmus Gulbahar
Level 22
Antalya
Question about the task
Five winners
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Everything is okay but display
i can't understand what happened but i did part of sort , then i can't display why did it wrong ??
12.06.2019
1424
views
4
comments
0
Berkson
Level 17
Fortaleza
Question about the task
Predictions
Java Syntax
,
Level 3
,
Lesson 8
Resolved
Only gives the error: The displayed text does not correspond to the task conditions.
Gives the error: The displayed text does not correspond to the task conditions. But if you try, the answer is correct! Can someone help me? package com.codegym.task.task03.task0319; /* Predictions */ import java.io.BufferedReader; import java.io.InputStreamReader; public class Solution { p
02.05.2019
1649
views
6
comments
0
Serg
Level 23
Tyumen
Question about the task
HashMap of Objects
Java Syntax
,
Level 8
,
Lesson 3
Resolved
What is the problem?
Displays on the screen correctly. But does not pass the test What is the problem? package com.codegym.task.task08.task0806; import java.util.HashMap; import java.util.Map; /* HashMap of Objects */ public class Solution { public static void main(String[] args) throws Exception { H
12.06.2019
1722
views
6
comments
0
ddi
Level 18
Dortmund
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Help Needed :)
I have tried a else{ four.add(a);} in line 38 but i am not achieving the goal.. What am i missing?
12.06.2019
1199
views
1
comment
0
smile
Level 7
Tainan
Question about the task
Drawing a rectangle
Java Syntax
,
Level 4
,
Lesson 13
Resolved
What's wrong with my code?
I run my code, and it seems nothing wrong, but I still failed. It says, "Be sure that you have displayed the correct number of rows." Why?
12.06.2019
1542
views
2
comments
0
Yash
Level 15
Sugar Hill
Question about the task
Cat relations
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
Rip my sanity
I don't understand why not work. If I don't put "else { return null; }" at the end I get missing return statement error.
27.05.2019
1554
views
3
comments
1
Nikitha J
Level 3
Chikmagalur
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
how to solve print method
how to solve it
12.06.2019
1226
views
1
comment
0
Andrei Stratu
Level 18
Iasi
Question about the task
Implement the fight method
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
Desired output but not correct answer
Hello, I implemented the method and got the correct output but i still cant pass the task. Can anyone help me please?
06.03.2019
1452
views
2
comments
0
Jeff Jeffy
Level 15
Irvine
Question about the task
Calculate the circumference of a circle
Java Syntax
,
Level 2
,
Lesson 2
Resolved
Help! It says I'm not displaying the circumfrence, but I feel as if I am. Can soemone explain?
I'm not displaying the circumfrence, but I feel as if I am. Can soemone explain?
25.12.2018
1996
views
5
comments
0
D13angos
Level 3
Bydgoszcz
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
It's correct but I used function that is forbidden
I used function system.out.println and checking code and programm marked is correct. This function system.out.print is forbidden. What will be function instead of system.out.print?
07.06.2019
1054
views
1
comment
1
yara
Level 8
St.gallen
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
Can't find my mistake.
Heeyy Does anyone find the mistake in my code? Thankkk youuuuuuu.
11.06.2019
1628
views
2
comments
0
Nayan Lochan Huzuri
Level 5
Guwahati
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Whats wrong in here?
The output is coming fine but the last condition fails!
10.06.2019
1265
views
1
comment
0
Ankita Patra
Level 5
Bhubaneshwar
Question about the task
Positive number
Java Syntax
,
Level 4
,
Lesson 7
Resolved
What's wrong in this code!!
08.06.2019
1284
views
1
comment
0
Bashimgeldi Kurbanov
Level 3
Cyberjaya
Question about the task
Print three times
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Easy way just use for loop
public class Solution { public static void print3(String s) { for (int x = 0; x < 3; x++){ System.out.print (s +" "); } }
14.04.2019
1418
views
4
comments
0
ARYAN
Level 4
Pune
Question about the task
Print three times
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
can someone tell me whats wrong in it?
plz tell my error
13.12.2018
2643
views
10
comments
0
Show more
1
...
310
311
312
313
314
...
372
Please enable JavaScript to continue using this application.