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
Connor
Level 8
Boston
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
Question about print in the main method.
What is print in the main method? I just don't quite understand how we go from public static void main(String[] args) { print("Java is easy to learn!"); print("Java opens many opportunities!"); } to public static void print(String s) { //My code goes here. } I
10.04.2019
1900
views
3
comments
0
Willie Mangram
Level 19
Pensacola
Question about the task
Method in a try-catch
Java Syntax
,
Level 9
,
Lesson 11
Resolved
If the user enters text rather than a number, the program should display all previously entered numbers.
Functions perfectly when I run it and when I enter a text it catches and displays the previous numbers entered and added into the ArrayList. I appreciate the assistance guys!
18.01.2019
1813
views
4
comments
0
Pratik Jain
Level 2
mumbai
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
print method
can any help me with this
12.08.2018
1514
views
10
comments
0
Nastya Varennikova
Level 11
Sumy
Question about the task
Calling a constructor from a constructor
Java Syntax
,
Level 5
,
Lesson 9
Under discussion
Please, help me!
I don't understand what is problem.
05.04.2019
1515
views
8
comments
1
Niranjan Soni
Level 15
Bangalore
Question about the task
Calling a constructor from a constructor
Java Syntax
,
Level 5
,
Lesson 9
Under discussion
Please help
Help please i'm not able to identify the problem in my code.
26.09.2018
1678
views
5
comments
0
Laurap5
Level 9
Vilnius
Question about the task
Calling a constructor from a constructor
Java Syntax
,
Level 5
,
Lesson 9
Under discussion
Please help
I'm not able to identify the problem, for me looks everything fine :)
20.11.2018
1468
views
5
comments
0
Billy Graves
Level 10
Austin
Question about the task
Going national
Java Syntax
,
Level 8
,
Lesson 11
Archived
Change first letter of each word to uppercase condition
I've worked on this problem for a few hours now and I can't seem to find what the issue is. Whenever I test it, it will always come back correct but it will not validate and warns me of multiple spaces between words which I've tested for. Any recommendations on how to resolve this issue? Additional
10.04.2019
1719
views
1
comment
0
past cham
Level 6
Delhi
Question about the task
Somehow average
Java Syntax
,
Level 4
,
Lesson 16
Resolved
pls help
The program should display the middle number of the three numbers. RECOMMENDATION FROM YOUR MENTOR Test the program with the numbers 1, 3, and 2. Expected output: 2
10.04.2019
1730
views
2
comments
0
Kira
Level 1
Schaumburg
Question about the task
Let's change the code
Java Syntax
,
Level 1
,
Lesson 4
Under discussion
Second variable?
My code is working. I dont need to declare the second variable.
08.10.2018
1541
views
6
comments
1
Thomas
Level 12
Gent
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
I keep getting an error. I guess i don't completely understand iterator
Can anyone help me? these tasks with iterator and maps are keeping me bussy...
02.04.2019
1422
views
3
comments
0
pax
Level 3
Bratislava
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
Can't find the mistake in my solution
Code executes without error but fails the last condition.
08.04.2019
1248
views
3
comments
0
stjepang
Level 8
Sveti Iija
Question about the task
Display the square of a number
Java Syntax
,
Level 1
,
Lesson 3
Under discussion
the server won't accept my solution. What is wrong in this simple code?
package com.codegym.task.task01.task0140; /* Display the square of a number */ public class Solution { public static int number = 25; public void main(String[] args) { //write your code here System.out.println(number); System.out.println(number * number); }
26.03.2019
1695
views
5
comments
0
Djole
Level 41
Belgrade
Question about the task
UnsupportedFileName
Java Core
,
Level 8
,
Lesson 8
Resolved
i need a if/else in constructor but super(name) has to be the first line in constructor.
public class TxtInputStream extends FileInputStream { private final String fileName; public TxtInputStream(String fileName) throws IOException, UnsupportedFileNameException { this.fileName = fileName; if(fileName.substring(fileName.length() -4).equals(".txt"))
07.04.2019
1228
views
2
comments
0
Vatsal Patel
Level 15
Naperville
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
What am I doing wrong?
I don't know what to do.
08.04.2019
1240
views
3
comments
0
Jeet
Level 2
Najafgarh
Question about the task
Square of a number
Java Syntax
,
Level 1
,
Lesson 8
Archived
Where is the mistake, from my end all conditions are satisfied.
Please help me to complete this task.
06.04.2019
1490
views
3
comments
0
Mike McKenna
Level 25
Wilmington
Under discussion
Nerd break end of level 1
Hi, I am unable to unlock Nerd break @ end of Level 1 ? Thank You Mike
08.04.2019
1167
views
1
comment
0
mallikarjuna
Level 3
Bangalore
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
plz fill this code
public class Solution { public static int min(int a, int b, int c) { //write your code here } public static void main(String[] args) throws Exception { System.out.println(min(1, 2, 3)); System.out.println(min(-1, -2, -3)); System.out.println(min(3, 5, 3)
21.08.2018
1161
views
4
comments
0
qsasdgkl
Level 17
San Diego
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 4
Archived
This compiles in IntellJ but refuses to run on the website, furthermore it claims that the program is not fulfilling requirements, but it does.
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(System.i
08.04.2019
1391
views
3
comments
0
Skylar
Level 2
Flint
Question about the task
As simple as 2+2
Java Syntax
,
Level 1
,
Lesson 8
Resolved
Not sure how to do this
I don't get how to do this because I dont get how to call a method aka the sum like what do I do here?
10.10.2018
2235
views
8
comments
0
Sabine Meijran-Prins
Level 7
Enschede
Question about the task
Implement the fight method
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
Why is a non existing object used as a parameter?
I do not understand why in this code: public boolean fight(Cat anotherCat) { //write your code here } public static void main(String[] args) { } ... The object anotherCat is used as a parameter, but this object is not made into the main method?
05.01.2019
1691
views
4
comments
0
Hankster
Level 9
Cleveland
Question about the task
Price of apples
Java Syntax
,
Level 4
,
Lesson 1
Under discussion
apple.addPrice() vs. Apple.addPrice?
I solved the problem but am puzzling over something. The given code calls the addPrice() method twice, once on apple instance: apple.addPrice(50);, and once on apple2 instance: apple2.addPrice(100);. I am uncertain what exactly is going on here with the dot operator being used to call a static met
12.01.2019
1579
views
2
comments
0
Bill Wu
Level 29
Wellington
Question about the task
Find a substring
Java Multithreading
,
Level 2
,
Lesson 5
Resolved
the last requirement not verified
I tried different ways to define "the word that follows the 4th space", with space or punctuation marks etc. But none can be verified. Has anyone solved this?
05.04.2019
1812
views
9
comments
0
Sokhibjon
Level 14
Tashkent
Question about the task
Min and max in arrays
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
Any Hints would be appreciated Thank you!!
Can anyone please tell me what am i doing wrong?
28.03.2019
1153
views
2
comments
0
pat
Level 2
Question about the task
Kind words for the teacher
Java Syntax
,
Level 0
,
Lesson 4
Resolved
Why doesn't it match the task conditions?
What ist wrong with my code?
02.04.2019
1264
views
2
comments
0
Learner
Level 16
Question about the task
Beer
Java Core
,
Level 3
,
Lesson 2
Resolved
Not sure what's wrong
Please help.
27.09.2018
1705
views
3
comments
0
Aakash potepalli
Level 22
Bangalore
Question about the task
Hey, are you alive?
Java Core
,
Level 3
,
Lesson 2
Under discussion
can anyone tell me where i am wrong
package com.codegym.task.task13.task1308; /* Hey, are you alive? */ public class Solution { public static void main(String[] args) throws Exception { interface Person { public void isAlive() { // return true; }
01.04.2019
1566
views
5
comments
0
Kotzebue
Level 6
Minsk
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
ERROR: The min method must return the minimum of the numbers a, b, and c.
Hi evrybody. Can anyone help me, please? Here is my solution and it really works (on the site and in IDEA with different data), but it doesn't pass verification. public class Solution { public static int min(int a, int b, int c) { int minimum = 0; if ((a < b
05.04.2019
1569
views
2
comments
0
Vani
Level 1
Delhi
Under discussion
The program should return a value of 20 and I am getting the required output as well. But when I used the "Code Analysis", it says that a javadoc comment is missing. Can you please help me in this? Thanks in advance!
package com.codegym.task.task01.task0137; /* * *Only 20 will do. */ public class Solution { public static int a = 1; public static int b = 3; public static int c = 9; public static int d = 27; public static void main(String[] args) { int result = + a + b - c + d;
03.04.2019
1104
views
3
comments
0
hemant
Level 8
prayagraj
Question about the task
Multiplication table
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
What does system.out.println(""); in the last line mean
What does system.out.println(""); in the last line mean
05.04.2019
1525
views
1
comment
0
Sachin Sharma
Level 2
Pune
Question about the task
I think being a programmer is cool
Java Syntax
,
Level 0
,
Lesson 3
Resolved
The task passed testing! Your solution to the task was better than 19% of other students. Can someone explain why only 19%? Thanks in advance!
The task passed testing! Your solution to the task was better than 19% of other students. Can someone explain why only 19%? Thanks in advance!
31.03.2019
1434
views
2
comments
0
Show more
1
...
332
333
334
335
336
...
371
Please enable JavaScript to continue using this application.