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
Java 25
All quests
All levels
Any status
Questions about tasks
Hot
Diep Le
Level 4
Paihia
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
What wrong with my code
could someone please point out what wrong with my code here? this is to find the maximum of 4 Use the keyboard to enter four numbers, and display the maximum of them. If the maximum occurs more than once, just display it once. Requirements: The program should read the numbers from the keyboard. Th
9/5/20
566
views
2
comments
0
Valuev Nutt
Level 4
Chiba
Question about the task
Our first converter!
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
Why 5.0 instead of 5?
I managed to do it but I am just wondering why it had to be 5.0 for it to work. I did very poorly in maths when I was in school so a simple explanation would be very much appreciated. Thanks!
9/4/20
688
views
3
comments
0
Adam
Level 1
Florida
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Resolved
Java.util.Scanner;
I guess we can't import Scanner? The below code works just fine in JGrasp and IntelliJ. Got it, I didnt know the input was at them bottom where it says input... I assumed the input was already part of the check. import java.util.Scanner; public class test { public static void main(String[] ar
9/4/20
820
views
2
comments
0
Dave Andrea
Level 41
Question about the task
Why doesn't the set contain an element?
Java Collections
,
Level 6
,
Lesson 10
Resolved
No idea what the validator is looking for here.
So I've tried the following: 1) I fixed isLastDateInDates() so that it compares the getTime() values rather than the object hashcodes. It now returns true. I left updateLastDate as is, as it should change the variable last date to the updated one. Validator won't accept the last 2 conditions. 2) I
8/30/20
601
views
1
comment
0
Hari
Level 8
Worcester
Question about the task
The end
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
what is wrong? please help!
9/4/20
582
views
1
comment
0
AnnemiekFF
Level 41
Breda
Question about the task
Restaurant (part 19)
Java Multithreading
,
Level 9
,
Lesson 15
Resolved
Output is correct with what is expected, but nothing verifies except the matching constructor.
Can anybody tell me where the problem lies? I think it must be somewhere other than the main method, but I don't know where or how to find it?
4/7/20
1520
views
3
comments
0
Andrei
Level 41
Question about the task
Sum of the digits of a three-digit number
Java Syntax
,
Level 3
,
Lesson 12
Under discussion
Why can't i declare multiple int variables on the same line, inside the function?
Hello, I have the following code but when I debug the code I get the following error: "java: variable sum might not have been initialized" Why I am not allowed to declare int variables sum and m in the same row using the formula " int sum, m = 0". The only way it is accepted is by declaring them in
8/26/20
612
views
8
comments
0
Lawson
Level 29
Lagos
Question about the task
Yet another adapter
Java Core
,
Level 9
,
Lesson 3
Under discussion
Help
pls I need help here
9/4/20
440
views
6
comments
0
Lawson
Level 29
Lagos
Question about the task
TableAdapter
Java Core
,
Level 9
,
Lesson 3
Resolved
Help
Someone pls guide me on the last option
9/4/20
592
views
2
comments
0
Akintilebo Olamilekan
Level 8
Osun State
Question about the task
Positive number
Java Syntax
,
Level 4
,
Lesson 7
Resolved
Help. Note that 0 is not a positive or negative number
package com.codegym.task.task04.task0428; /* Positive number */ 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 = sc.nextIn
1/31/19
2309
views
6
comments
0
mstellaluna
Level 5
Question about the task
Positive number
Java Syntax
,
Level 4
,
Lesson 7
Under discussion
Code Error
I pass all the requirements except 1 of them. the message is a bit obscure for me so im not sure what is wants. if I go into eclipse, replace buffered reader with variables with values, it works fine... Here is my code BufferedReader reader = new BufferedReader (new InputStreamReader(System.i
9/4/18
1782
views
7
comments
0
Pablo Saquilmer
Level 32
Guatemala City
Question about the task
Rarest bytes
Java Core
,
Level 8
,
Lesson 3
Under discussion
What I m getting wrong?
Is this what i should display?
9/4/20
480
views
2
comments
0
David
Level 9
Atlanta
Question about the task
Shuffled just in time
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
Seems to work, but...
Not sure why this won't clear, even if it's a bit inelegant...
9/3/20
481
views
3
comments
0
Tyler Evans
Level 6
Wallasey
Question about the task
Man and woman
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
Help please failing saying make sure you make 2 Man objects
From what i can see i have made two man objects and two woman objects. it is failing on the condition of that "in the main method you need to created two objectss of each type". I have run the program and the output appears to be correct also. Any help is appreciated many thanks Tyler
9/2/20
517
views
4
comments
0
yi
Level 20
Toronto
Question about the task
Wine tasting
Java Core
,
Level 4
,
Lesson 8
Archived
Hi Can someone help me with this ?
Can you tell me how to return the 3 methods in Solution class ? thx.
12/21/19
1284
views
6
comments
0
Premachandran
Level 35
Ernakulam
Question about the task
User, loser, coder and programmer
Java Core
,
Level 4
,
Lesson 8
Under discussion
pl help. Why my code is not passing verification
pl help. my code is not passing cerification
12/3/18
1916
views
5
comments
0
Joel Pearce
Level 22
Birmingham, UK
Question about the task
Rounding numbers
Java Core
,
Level 8
,
Lesson 11
Under discussion
How am I so spectacularly wrong?
Looking at other people's code I can see that I'm way out of the ballpark on this one. Did I miss something in the lessons?
9/3/20
477
views
1
comment
0
Malte Böhm
Level 12
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
Which lection did i miss?
Hey guys, I really have no clue how to solve this the right way. My issue is that I have to clue how to get the length of an element. Was this somewhere in a lection before and I missed it? What did you do to solve it? Thank you
9/2/20
541
views
2
comments
0
Andres
Level 4
Reedley
Question about the task
Deep and pure love
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
what am i doing wrong
help please
8/13/20
525
views
4
comments
0
Lawson
Level 29
Lagos
Question about the task
Extending AmigoOutputStream
Java Core
,
Level 8
,
Lesson 8
Resolved
Help
Pls what's my error... I need help
9/2/20
513
views
1
comment
0
towelie8
Level 1
Darmstadt
Question about the task
Min and max in arrays
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
Right answer, but 3 requirement fails :/
Right answer, but 3 requirement fails :/
8/26/20
613
views
3
comments
0
Bryce Lindley
Level 9
Olympia
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Doesn't this work?
Not sure why it's giving me problems. :>(
5/19/19
1272
views
3
comments
0
Robert P
Level 20
Nashville
Question about the task
GCD
Java Core
,
Level 4
,
Lesson 8
Resolved
Help with condition 2
I've tried many things to pass this condition. I've added try/catch blocks. I've used an if block to throw an Illegal Argument Exception for negative numbers. I'm currently using an if block to convert negative int into positive int. I've changed the main signature to what another question post
11/24/18
2744
views
4
comments
0
Lawson
Level 29
Lagos
Question about the task
Table
Java Core
,
Level 8
,
Lesson 8
Under discussion
Pls help
how do u display the list ... I'm short of ideas now pls help with the code probably
9/2/20
561
views
1
comment
0
Lawson
Level 29
Lagos
Question about the task
AmigoOutputStream
Java Core
,
Level 8
,
Lesson 8
Resolved
Help
It tells me to throw exception... I don't know what to do here
9/2/20
699
views
0
comments
0
Lawson
Level 29
Lagos
Question about the task
Sorting bytes
Java Core
,
Level 8
,
Lesson 3
Under discussion
Pls help me
I don't understand why it isn't displaying
9/1/20
474
views
2
comments
0
vaibhav
Level 4
Morristown
Question about the task
Decent pay
Java Syntax
,
Level 4
,
Lesson 16
Under discussion
Level 4: Lesson 16
public class Solution { public static void main(String[] args) { //write your code here int i=0; while(i<=99) { System.out.println("one hundred times:\"I will never work for peanuts.Amigo\""); //System.out.println("\"I will never work for peanu
9/2/20
596
views
1
comment
0
Seferi
Level 22
Question about the task
Sorting even numbers from a file
Java Core
,
Level 3
,
Lesson 11
Resolved
Somehow its reading the 2nd, 4th, 6th etc lines...
Help is appreciated...
8/20/20
779
views
8
comments
0
Dave Andrea
Level 41
Question about the task
Toward an RMI server
Java Collections
,
Level 2
,
Lesson 10
Under discussion
Is this program supposed to throw an error?
I passed the validation but my program threw a NoSuchObjectException. This is because we are "pretending" that we made a server and client, right?
8/30/20
592
views
1
comment
0
Baurzhan Konurbayev
Level 40
Question about the task
Word search
Java Core
,
Level 10
,
Lesson 10
Resolved
need help
Hi, Could you please tell me what tests are failing? Samples from task work fine. Thanks
8/31/20
617
views
4
comments
0
Show more
1
...
143
144
145
146
147
...
374
Please enable JavaScript to continue using this application.