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
Wojtek
Level 23
Solec-Zdroj
Question about the task
Calculating salaries
Java Core
,
Level 9
,
Lesson 11
Under discussion
What is wrong?
input: Peterson 2 Smith 6 Baxter 1.35 Peterson 3.1 output: Baxter 1.35 Peterson 5.1 Smith 6.0
03.04.2019
1459
views
2
comments
0
Roy
Level 22
Bangkok
Question about the task
Splitting a file
Java Core
,
Level 8
,
Lesson 5
Resolved
Any help on this one would be welcome, doesnt Validate somehow.
Checked with multiple files, seems to work on all occasions. I decided not to use the while (available >0) loop as it is not needed when writing everything in the array at once. The requirement failures seem to indicate the validation process is expecting something. Would be good to know if my
07.05.2019
1172
views
10
comments
0
Maximus_911
Level 18
Nizhniy Novgorod
Question about the task
Task about algorithms
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
IndexOutOfBoundsException in line 67
I suppose something is messed up in the part from 61 to 69, but can't figure what exactly, please help.
24.04.2019
1082
views
1
comment
0
Ben Valenta
Level 5
Washington
Question about the task
Creating a cat
Java Syntax
,
Level 5
,
Lesson 5
Resolved
Help with final part
In my code, i have the four variables declared but when I try to verify it it says that I have not declared the 4 variables. How do I fix that if the four variables seem to be declared to me?
18.01.2019
1816
views
4
comments
0
Dupi
Level 22
Guangzhou
Question about the task
We're all friends here, even the exceptions
Java Syntax
,
Level 9
,
Lesson 8
Under discussion
Have i learned "inherit"?
Have i learned "inherit"?
16.05.2019
1237
views
2
comments
0
Kymie
Level 4
Singapore
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Can't seem to find the problem. Is it the logic at fault?
Am not sure what's wrong with my code. This outputs me the correct answer but I still fail to pass testing (as seen in the img below). Not sure if it's the logic flow or the syntax. If anyone can spot the error, do let me know! Much appreciated!
23.04.2019
1527
views
5
comments
0
Jyothi
Level 20
Question about the task
Writing to a file from the console
Java Core
,
Level 3
,
Lesson 11
Resolved
still not passing
failing validation
14.01.2019
1756
views
7
comments
0
Vadym Opalenyk
Level 10
Vyshneve
Question about the task
A name is a name
Java Syntax
,
Level 4
,
Lesson 16
Under discussion
Why doesn't it protect
Why doesn't it protect
16.05.2019
1056
views
4
comments
0
hidden #10444738
Level 16
Question about the task
Describing numbers
Java Syntax
,
Level 4
,
Lesson 7
Archived
fails on the last.
The last bit fails why ? else if(num1 < 1 || num1 > 999){ System.out.println("");
06.05.2019
969
views
2
comments
1
Nemanja Curufinwë Kuzmanovic
Level 18
Belgrade
Question about the task
GCD
Java Core
,
Level 4
,
Lesson 8
Resolved
2nd condition is unclear
No matter what I try, 2nd condition won`t pass. Tried: No try, catch blocks, with throws Exception in main, as well as throws IOException With try, catch and IllegalArgument, as well as NumberFormat, and then rethrowing it in catch Nothing works.
25.11.2018
1741
views
6
comments
0
Shahanshah Alam
Level 9
Mohali
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Archived
help please
i m getting 0 if i try 3 -1 -3 -2 i know its because maximum is initialized as int maximum = 0; but how to resolve it?
23.09.2018
1642
views
7
comments
3
Sergei Polakov
Level 11
Donets'k
Question about the task
Minimum of N numbers
Java Syntax
,
Level 8
,
Lesson 11
Resolved
I cant understand whats wrong
enter 524 5345 4357 1 output 5345
15.05.2019
1683
views
5
comments
0
FADY ILIAS
Level 5
Perth
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 7
Under discussion
Not sure why this is failing ( expected)
Hi, please look at my code and let me know why it is not running correctly. I am getting the error below: Thanks package com.codegym.task.task04.task0429; /* Positive and negative numbers */ import java.io.*; import java.util.*; public class Solution { public static void main(String[] a
16.05.2019
1601
views
4
comments
0
Vadym Opalenyk
Level 10
Vyshneve
Question about the task
Drawing a rectangle
Java Syntax
,
Level 4
,
Lesson 13
Under discussion
I do not understand the mistake
I do not understand the mistake
15.05.2019
1164
views
6
comments
0
Bazsó Benjámin
Level 20
Szombathely
Question about the task
SimpleObject interface
Java Core
,
Level 3
,
Lesson 11
Resolved
not sure what to do here
not sure what to do here
15.04.2019
1706
views
3
comments
0
Voris
Level 10
Tashkent
Question about the task
Calculator
Java Syntax
,
Level 6
,
Lesson 8
Resolved
Whats wrong with my percent method ?
public static double percent(int a, int b) { double c = ((double)b/(double)a)*100; return c; }
18.04.2019
2087
views
3
comments
0
Henk
Level 19
Pretoria
Question about the task
Incorrect lines
Java Core
,
Level 3
,
Lesson 11
Resolved
Just wondering...
Any particular reason why the String variable NAME is in capitals ? (Tried Google, not finding a simple or close explanation)
16.05.2019
1220
views
1
comment
0
Kymie
Level 4
Singapore
Question about the task
Number of days in the year
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
What is the error here?
Hi! I ran through all the test cases and there were no errors. However, I could not pass the testing, 2 conditions were still not met. I even tried on IntelliJ IDEA but still could not pass testing. Can anyone spot the error in my code? Thank you!
16.05.2019
997
views
1
comment
0
T.SWETHA
Level 2
Mumbai
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Resolved
task
public class Solution { public static void main(String[] args) { salary(8000); } public static void salary(int a) { a= a+ 1000; System.out.println("Your salary is:" +a+ " dollars per month."); } } what's wrong in this program?
12.08.2018
3026
views
11
comments
0
Fernando Gerbrich
Level 13
Bad Aibling
Question about the task
The end
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
I don't get it
the output is right ... the programm works fine. but the fourth point will noch turn green.
15.05.2019
1632
views
2
comments
0
Carlos
Level 9
Eskoriatza
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
Whats happening? point 2 & 4 fails
public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader= new BufferedReader(new InputStreamReader(System.in)); int[] bigArray=new int[20]; int[] smallArray1=new int[10]; int[] smallArr
14.10.2018
1105
views
2
comments
2
Satya Vath
Level 31
Vijayawada
Question about the task
Picking out numbers
Java Core
,
Level 9
,
Lesson 5
Under discussion
Please Help
How to solve it
19.04.2019
1462
views
1
comment
0
Emmanuel Adorkor
Level 1
Accra
Question about the task
Declare variables
Java Syntax
,
Level 0
,
Lesson 4
Resolved
Why can't I declare variables with my phone
Why cant I code with my phone
30.04.2019
1222
views
1
comment
0
edis emin
Level 7
London
Under discussion
How do I improve on control flow statements?
How do I improve on control flow statements? Right now I am really struggling with exercises which include things like while and for statements. Are there any resources I can use to improve my skills?
29.04.2019
973
views
1
comment
0
Mike McKenna
Level 25
Wilmington
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
error variable min might not have initalized .
Hi, error is return min; ^ Thanks Mike McKenna
29.04.2019
1021
views
1
comment
0
Lukasz Samulnik
Level 16
Warsaw
Under discussion
Split screen
Does anyone know how can I restore initial split screen when in exercise view? The one with conditions on the left and code editor on the right? Somehow it turned to look like more like a browser with tabs on top.
26.04.2019
1093
views
1
comment
0
Mehala
Level 0
Question about the task
I think being a programmer is cool
Java Syntax
,
Level 0
,
Lesson 3
Resolved
what wrong in this code? when I compile it's executing the correct answer, but when I submit for verify it showing the task failed to pass testing.. anyone can u explain this
import java.util.Scanner; public class Solution { String sc,mc,pc; public static void main(String[] args) { Scanner sc=new Scanner(System.in); String s=sc.nextLine(); System.out.print(s); Scanner mc=new Scanner(System.in); Strin
15.05.2019
1358
views
2
comments
0
Yash
Level 15
Sugar Hill
Question about the task
Day of the week
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Not Working???
I don't know why. It should work.
14.05.2019
1000
views
1
comment
0
Mikayla Pace
Level 27
Salt Lake City
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Resolved
My program does not print out the correct string
I can't figure out why my code isn't printing out the correct string. It seems like it is just returning whatever string is 9 characters long??
14.05.2019
1598
views
4
comments
0
Sarah
Level 3
Nairobi
Question about the task
Kind words for the teacher
Java Syntax
,
Level 0
,
Lesson 4
Resolved
error
com/codegym/task/task01/task0102/Solution.java:12: error: cannot find symbol System.out.printIn("Ellie is clever"); ^ symbol: method printIn(java.lang.String) location: variable out of type java.io.PrintStream Anyone explain to me why am getting this error please, whe
15.05.2019
1176
views
2
comments
0
Show more
1
...
317
318
319
320
321
...
366
Please enable JavaScript to continue using this application.