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
Rolphson S
Level 2
New York City
Question about the task
One cat isn't enough
Java Syntax
,
Level 2
,
Lesson 3
Resolved
I need help with this one.
How and where do I store a value to the reference cat?
04.05.2020
1056
views
4
comments
0
Derrick Shema
Level 14
Bethany
Question about the task
Multiplication table
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
Hello Amigos! I don't know why the code I wrote is not meeting the last two requirements. My code gives instructions to print 10 numbers on the same line with spaces for each loop before incrementing the count by 1. I don't know where I am going wrong. Please help! See code below.
public class Solution { public static void main(String[] args) { int count=1; while (count<=10){ //evaluates condition System.out.print(1*count+""); // System.out.print(2*count+""); System.out.print(3*count+""); System.out.print(4*count+"");
04.05.2020
734
views
4
comments
0
Henrique
Level 41
São Paulo
Question about the task
To the top of the list
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
Why must it be inverted?
I finally managed to do this task (so I'm not able to place the solution here). But I could do it only by searching the help topics, and I didn't really understand neither the conditions, nor the solution. And in the topics I didn't find any explanation of the conditions, only partial answers to the
04.05.2020
731
views
4
comments
0
Bryce Lindley
Level 9
Olympia
Question about the task
Controlling body weight
Java Syntax
,
Level 6
,
Lesson 8
Resolved
I dont understand.
Does this explain why scales don't matter? What is wrong with the code ? :(
15.09.2019
1666
views
3
comments
0
J_DJ
Level 4
Saint Louis
Resolved
do you really need to download intelliJ IDEA?
04.05.2020
707
views
2
comments
0
Jim_Gk
Level 1
Sofia
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Resolved
Any suggestions?
My output seems correct to me but the 3rd and 4th requirements are not satisfied.
09.12.2019
1486
views
6
comments
0
J_DJ
Level 4
Saint Louis
Question about the task
Subjective reality
Java Syntax
,
Level 2
,
Lesson 3
Resolved
How do I make it see the String ? I named a it but it doesent see the String a.
How do I make it see the String ? I named a it but it doesent see it.
02.05.2020
756
views
2
comments
0
Alesha Ray
Level 20
Austin
Question about the task
Rounding numbers
Java Core
,
Level 8
,
Lesson 11
Resolved
My code is giving the correct solution, what's going wrong?
I don't have any unnecessary new lines or spaces. I assume it's the way I'm handling negative values but can't be sure. Any help would be greatly appreciated!
04.05.2020
755
views
4
comments
0
jclements2
Level 20
Rogers
Question about the task
Threads and bytes
Java Core
,
Level 8
,
Lesson 11
Resolved
This code adds the correct entries to the hash map, but it doesn't verify, can someone please offer me some advice?
I have begun to feel that the instructions for these task are becoming very vague, but a very specific solution is required to pass. I had my code outputting the result set added to the resultMap hash map, and the results added there were correct for the input files I used, yet it still doesn't veri
04.05.2020
924
views
2
comments
0
Chris Hilborne
Level 26
Sanlucar de Barrameda
Question about the task
AmigoOutputStream
Java Core
,
Level 8
,
Lesson 8
Resolved
Why does .close() write to the file twice?
OK - quick question for everyone. I've solved the task - but when I tested the .close() method with a file of my own... it wrote the string to be appended TWICE I can't for the life of me figure out why... any ideas? package com.codegym.task.task18.task1813; import java.io.FileNotFoundException
01.05.2020
1289
views
3
comments
0
Keston Bailey
Level 4
Milwaukee
Question about the task
Sam I Am
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
What was the purpose of this lesson like what was it trying to teach?
I figured out the solution this problem but I did not see the purpose to this lesson if someone could explain.
03.05.2020
1222
views
2
comments
0
Sayed Ali
Level 13
Madinat 'Isa
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
Longest String issue
The code shows the correct answers, still it gives more two wrong requirements! What is the issue?
04.05.2020
704
views
3
comments
0
sachin thakur
Level 18
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
Please help. Can't figure out what's wrong in my code.
Please help. Can't figure out what's wrong in my code.
04.05.2020
557
views
2
comments
0
Johannes
Level 27
Centurion, Pretoria
Question about the task
Arkanoid (part 9)
Java Multithreading
,
Level 3
,
Lesson 13
Resolved
don't understand how to initialize the matrix ?
Please give me a help ?
03.05.2020
821
views
2
comments
0
Alex
Level 16
Charlotte
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
What is wrong in the code?
What is wrong in the code?
04.05.2020
782
views
2
comments
0
KryptoBlack
Level 7
Mumbai
Question about the task
Price of apples
Java Syntax
,
Level 4
,
Lesson 1
Resolved
Can't figure it out...Need some hints!!!
Can some one help me with this.... Any hints will be appreciated.
19.08.2018
3277
views
13
comments
0
Hunt.me.suhaib xaras
Level 3
Mumbai
Question about the task
Where does a Person come from?
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
What is person() stands for?
Person person =new person(); //Will any one explain ,what this step actually does.
04.05.2020
618
views
2
comments
0
Rebekah H
Level 8
Gothenburg
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Last requirement not fulfilled
I don't understand what is wrong with my code, would someone please care to explain why it does not work?
04.05.2020
539
views
3
comments
0
Soham
Level 5
Kitchener
Question about the task
18+
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Can someone please help me here
Why is this code not working.
20.11.2019
957
views
3
comments
0
Vahan
Level 41
Tbilisi
Question about the task
Arkanoid (part 19)
Java Multithreading
,
Level 3
,
Lesson 13
Resolved
Would anyone kindly explain to me why bellow two methods are not in accordance with the task conditions:
public void checkBrickCollision() { for(Brick brick : bricks) { if (ball.intersects(brick)) { double angle = Math.random() * 360; ball.setDirection(angle); bricks.remove(bricks.indexOf(brick)); break; }
25.01.2020
1343
views
2
comments
0
Syed Huzaifa
Level 7
Karachi
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
resolved
val1 >= val2 >= val3...........val1" "val2" "val3 val1 >= val3 >= val2...........val1" "val3" "val2 val2 >= val1 >= val3...........val2" "val1" "val3 val2 >= val3 >= val1...........val2" "val3" "val1 val3 >= val1 >= val2...........val3" "val1" "val2 val3 >= val2 >
03.05.2020
746
views
2
comments
0
virupaksha gottapu
Level 2
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Resolved
how to print string 4 times
how to display a string 4 times
24.04.2020
1043
views
3
comments
0
Jonas
Level 41
Vilnius
Question about the task
Unique substrings
Java Collections
,
Level 9
,
Lesson 9
Resolved
Verification error definetely
My answer is good 100%
11.04.2020
693
views
4
comments
0
Johannes
Level 27
Centurion, Pretoria
Question about the task
Arkanoid (part 14)
Java Multithreading
,
Level 3
,
Lesson 13
Resolved
don't know how to call the Canvas' setPoint() method ?
Cannot access it from Ball ? Do I need to create a new Canvas object each time in the Ball.draw() method ? Then call the newly created canvas object's setPoint() ? Makes no sense ? Second question: The original creation requirement for Ball, had another constructor. Had to modify it now with this t
04.05.2020
738
views
1
comment
0
Daniel
Level 15
Colnbrook
Question about the task
Robot wars
Java Core
,
Level 3
,
Lesson 11
Resolved
I passed all tests on first try. But, WHY?!?!
This was the output, so clearly not the right one. %s attacked Amigo: its Enemy was attacked, and its hand was defended %s attacked Amigo: its Enemy was attacked, and its leg was defended %s attacked Enemy: its Amigo was attacked, and its chest was defended %s attacked Amigo: its Enemy was attac
29.04.2020
674
views
1
comment
0
Premachandran
Level 35
Ernakulam
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Under discussion
I tried many ways but could not pass verification. Pl help
The mentor recommendation is "Be sure that no exceptions occur in the getNumbers method for any input data." I tried many ways but could not pass the verification. Pl help
12.04.2020
857
views
4
comments
0
YSS
Level 16
New York City
Question about the task
Order of loading variables
Java Core
,
Level 5
,
Lesson 12
Resolved
I'm almost there but can't get it right. Thanks.
I got it to this but I'm struggling with the 0 and null and the end 6 and First name Thanks static void init() Static block public static void main Non-static block static void printAllFields null 0 Solution constructor static void printAllFields First name 6
20.12.2019
1384
views
3
comments
1
Jamie Pyette
Level 9
Sault Ste. Marie
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Resolved
I completed the task but still unsure
I'm a bit confused why asking for the number 1st in the place of name gives the proper output. In my mind, it would read " 8 will take over the world in Kevin years. Mwa ha ha. Id appreciate anyones opinion on this.
19.04.2020
1057
views
4
comments
0
Jason Ahn
Level 5
Calgary
Question about the task
Jen or Jen?
Java Syntax
,
Level 4
,
Lesson 6
Resolved
Please help me
I have no idea what's wrong..Please help me.
20.12.2018
2009
views
4
comments
1
Mihaela
Level 16
Iasi
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
Help Please!
I don`t understand where is the problem. Please help!
28.01.2019
1842
views
2
comments
1
Show more
1
...
194
195
196
197
198
...
367
Please enable JavaScript to continue using this application.