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
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
1335
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
2685
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
1104
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
944
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
1468
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
1096
views
1
comment
0
Austin
Level 6
Lansing
Question about the task
A name is a name
Java Syntax
,
Level 4
,
Lesson 16
Resolved
Is it possible to print multiple lines within one System.out.println(); function?
It might look something like this if it were possible: System.out.println("My name is " + name + "." + /n + "I was born on " + xx + "/" + xx + "/" + xxxx); // basically this would be to cut down on using two System.out.println(); functions Basically, this would be to cut down on using two System.o
30.04.2019
1202
views
1
comment
0
Paweł
Level 15
Gromnik
Question about the task
Improving functionality
Java Syntax
,
Level 5
,
Lesson 12
Resolved
What's wrong!?
Help me, it works.
09.04.2019
1722
views
5
comments
1
Igor Alves
Level 6
Aveiro
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Resolved
What do i do?
I've tried everything to solve it, but it seems that i'm missing something. Please, help me!
29.04.2019
1450
views
3
comments
0
shajune dev
Level 2
Question about the task
The great purge
Java Syntax
,
Level 1
,
Lesson 8
Resolved
Output should not change?.
The output should not change?.
21.01.2019
1125
views
5
comments
0
Serg
Level 23
Tyumen
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Why does an error occur?
Why does an error occur? If you cant see the triangle with the sides you need to display: "The triangle is not possible." package com.codegym.task.task04.task0415; import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader buf
29.04.2019
1521
views
4
comments
0
Steven Mcilhone
Level 17
Belfast
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Archived
still failing last condition any suggestions?
still failing last condition any suggestions?
25.04.2019
906
views
1
comment
2
Vlad Yehorov
Level 8
Dnipropetrovsk
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Could you tell me why my code is not suitable?
Could you tell me why my code is not suitable?
29.04.2019
1275
views
2
comments
0
Bogdan Codreanu
Level 23
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
??
can someone please tell me what's wrong with my code ?
29.04.2019
1030
views
2
comments
0
Jyothi
Level 20
Question about the task
Fix the bugs
Java Core
,
Level 8
,
Lesson 5
Resolved
fixed 2 bugs. what are the other 2?
Verify failing. I've fixed 2 bugs out of 4. Please help with the other 2.
03.01.2019
1775
views
3
comments
0
Janusz
Level 11
Radomsko
Question about the task
Cat's finalize method
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
What is wrong in line: 16, column: 19 ?
What is wrong in line: 16, column: 19 ? protected void finalize() throws Throwable;
12.11.2018
1383
views
3
comments
0
manoj deo
Level 3
Jakarta
Question about the task
CodeGym. Learn once - use anywhere
Java Syntax
,
Level 1
,
Lesson 4
Resolved
Why its not satisfying the last condition
public class Solution { public static void main(String[] args) { String s = "CodeGym.Learn once - use anywhere"; 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.p
26.08.2018
1959
views
4
comments
0
Steven Mcilhone
Level 17
Belfast
Question about the task
Calculator
Java Syntax
,
Level 6
,
Lesson 8
Resolved
what is it i am doing wrong
what is it i am doing wrong, tried (b/100)*a and (a/100)*b
26.04.2019
2725
views
5
comments
0
asyraf
Level 3
Kuala Lumpur
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
does my code wrong
This question provide the error The hackSalary method should increase the input parameter by 1000 and output text to the screen according to the specified template. please someone explain to me what i did wrong here.
28.04.2019
1012
views
4
comments
0
Anastasia Falcon
Level 8
Rio de Janeiro
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Resolved
I could probably solve this in another way, but why doesn't this solution work?
This clearly has some problems but I don't know why. I had a look at the while loops in the lessons where they were explained, but can't see the problem.
27.04.2019
1218
views
9
comments
0
Anastasia Falcon
Level 8
Rio de Janeiro
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Resolved
I will go insane, what is wrong here? Can anyone explain, please?
I've tried various different ways, but I just don't understand what's wrong. The program calculates the result incorrectly, but compiles and passes the "if -1 entered the program should terminate correctly" requirement.
28.04.2019
1158
views
2
comments
0
Roy
Level 22
Bangkok
Question about the task
Buggy initializeIdAndName
Java Core
,
Level 3
,
Lesson 2
Resolved
DBObject object or User object confusion
I have managed to solve the task by checking the other users their help questions here. However, i am still stuck on why the code needs to be changed to User and it can't be a reference to the User object through the DBObject interface. interface DBObject { DBObject initializeIdAndName
26.04.2019
1729
views
7
comments
0
Alex Balandinos
Level 18
Lusaka
Question about the task
Drawing a rectangle
Java Syntax
,
Level 4
,
Lesson 13
Resolved
Hey ,Its printing the 8888 and next line 8888 like in the example output but still checking wrong check correct number row any help will be great.
12.02.2019
2274
views
1
comment
1
thisisalongname
Level 15
Spokane
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Regarding the difference in "==" and ".equals"
I originally wrote my code with "name1 == name2" as the comparing if condition and it didn't work so had to replace it with ".equals". My question is about why it didn't work. From what I understand, "==" checks the place in memory where it is stored rather than a direct comparison. So it wouldn't w
27.04.2019
1197
views
3
comments
0
Beautiful Active Dedicated
Level 4
Arlington, TX
Question about the task
Predictions
Java Syntax
,
Level 3
,
Lesson 8
Resolved
whats the hold up?
what did i do wrong? import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); String name = sc.nextLine(); int number1 = sc.nextInt(); int number2 = sc.nextInt();
27.04.2019
1214
views
2
comments
0
Steven Mcilhone
Level 17
Belfast
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
unsure whats wrong
any help?
28.04.2019
968
views
1
comment
0
dpp
Level 8
Colombo
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Resolved
It says the displayed text doesn't match task conditions
What's wrong with this?
24.04.2019
1137
views
3
comments
0
Roy
Level 22
Bangkok
Question about the task
Writing to a file from the console
Java Core
,
Level 3
,
Lesson 11
Resolved
I close the writer but still have error.
Don't understand why it doesn't work
27.04.2019
1176
views
3
comments
0
Anant Parashar
Level 4
Dehra Dun
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
Shouldn't there be two string variables for two different messages being printed?
In this exercise we are calling print function twice and giving it two different strings but we have declared only one string variable "s" in the print method definition. Shouldn't there be two string variables to receive two different strings?
27.04.2019
937
views
2
comments
0
khushbu Nirmal
Level 7
Mumbai
Question about the task
Display today's date
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
how can we do this task
help
18.11.2018
1857
views
7
comments
0
Show more
1
...
322
323
324
325
326
...
366
Please enable JavaScript to continue using this application.