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
Iheamarame Emmanuel Uchechukwu
Level 4
Bopo
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
i dont understand where the problem is
package com.codegym.task.task03.task0318; /* Plan to conquer the world */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String name = reader.re
1/14/19
1814
views
3
comments
0
Mohit Swain
Level 9
Bhubaneswar
Question about the task
Static cats
Java Syntax
,
Level 6
,
Lesson 11
Archived
what is wrong in my code?
please explain me the question as i am not able to get it
1/21/19
2069
views
2
comments
0
Divya vats
Level 2
Kota
Question about the task
I think being a programmer is cool
Java Syntax
,
Level 0
,
Lesson 3
Under discussion
error is coming in print the line "I think being a programmer is cool".
import java.util.scanner; public class Solution { public static void main(String[] args) { System.out.print("I think being a programmer is cool"); } }
1/7/19
1803
views
10
comments
0
Abhijeet Ranaut
Level 2
Mumbai
Question about the task
Don't feel like it? Do it anyway.
Java Syntax
,
Level 1
,
Lesson 8
Resolved
Why is the 5th condition not full filled
1/22/19
1573
views
1
comment
0
MP
Level 8
Wietzendorf
Question about the task
Creating cats
Java Syntax
,
Level 5
,
Lesson 9
Resolved
Can you explain what is wrong?
What is wrong?
1/22/19
1714
views
10
comments
0
Divya vats
Level 2
Kota
Question about the task
No comments needed
Java Syntax
,
Level 0
,
Lesson 8
Under discussion
What is the problem in this code?
What is the problem in this code? the condition is you have to uncomment only one line from this code where two line are commented y=x*y; y=x+y; the output: first 12 and then 2 public class Solution{ public static void main(String[] args){ int x=2; int y=12; y=x+y;//this line is uncommented // x=y-
1/21/19
1464
views
2
comments
0
Hashirama
Level 26
Port-Harcourt
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Archived
Help please
The last condition didn't match. What's the error in the code?
1/16/19
1630
views
5
comments
1
Shahanshah Alam
Level 9
Mohali
Question about the task
Let's put together a rectangle
Java Syntax
,
Level 5
,
Lesson 7
Under discussion
help please...what cause error in copy method
public class Rectangle { int left; int top; int width; int height; public void initialize(int left, int top, int width, int height){ this.left = left; this.top = top; this.width = width; this.height = height; } public void initialize(int le
9/25/18
1769
views
10
comments
0
MP
Level 8
Wietzendorf
Question about the task
The Three "Muscateers"
Java Syntax
,
Level 5
,
Lesson 5
Resolved
Can someone explain?
Okay my code worked but I have a question so I may understand the whole class and object thing .. I first wrote it like that: Cat catx = new Cat(); catx.name = "bob"; but that gave me just errors. but if I write it like that: Cat cat1 = new Cat("bob",2,3,4); it works. Can you explai
1/21/19
2057
views
2
comments
0
ozayr ahmed
Level 11
Paterson
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Why does this not work?
This isn't going through.
11/8/18
2107
views
2
comments
0
anotherLearner
Level 18
Barcelona
Question about the task
Shared last names and first names
Java Syntax
,
Level 8
,
Lesson 11
Resolved
How to get duplicated keys in map?
I tried to pass List instead of String as value, but requirements ask me to be String,String. Need help!
10/30/18
2392
views
6
comments
0
Multivac
Level 13
Lima
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Resolved
Date.getMonth() and other functions are deprecated?
In this task and in others I used the methods getMonth(), etc as explained in previous lessons, but when I read the documentation of Java SE 8 I found out that all those methods are "deprecated" and that we should use the Calendar class and its methods. So maybe this lessons should be re written or
1/19/19
1923
views
2
comments
1
Bryce Lindley
Level 9
Olympia
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
Errors. Any tips?
Keep running into errors not sure why this is being difficult ;0)
1/20/19
1641
views
5
comments
0
Hashirama
Level 26
Port-Harcourt
Question about the task
Greater than 10? You're not a good fit for us
Java Syntax
,
Level 8
,
Lesson 8
Resolved
Please what's the problem here?
I ran it and got the right output. What did I do wrong?
1/21/19
2200
views
17
comments
1
MP
Level 8
Wietzendorf
Question about the task
A name is a name
Java Syntax
,
Level 4
,
Lesson 16
Resolved
where is the typo..
those tasks are so exhausting..
1/20/19
1581
views
6
comments
0
dD
Level 17
Novi Sad
Question about the task
Adding
Java Syntax
,
Level 4
,
Lesson 16
Under discussion
This task has some errors or something, please check it
So i wrote the code and ran it, and got the error saying "java.lang.NumberFormatException: Solution.java, method main, line: 18" and "Error converting a string to a number (invalid format)." Thats what you get i think when you enter letters instead of number (Even though i entered the digit, not let
1/20/19
1838
views
7
comments
0
Daniel Njuguna
Level 14
Kiambu
Question about the task
Three numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
What's wrong with my code??
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.in)); int number1 = Integer.parseInt(reader.readLine()); int number2
1/21/19
1810
views
3
comments
0
srikanth
Level 10
Bangalore
Question about the task
Cat's finalize method
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
what is the mistake in this code?
public class Cat { //write your code here protected void finalize() throws throwable{ } public static void main(String[] args) { } } what is the mistake in this code ? please do help me ..
1/20/19
1502
views
2
comments
0
Monica Nicoleta
Level 7
Arad
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 4
Archived
I need help.
I know something is wrong with my code, i just don't know what. Please help me. Thank you.
1/20/19
1823
views
2
comments
0
Sundaram
Level 12
Chennai
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
Passing verification but failing on run.Error converting a string to a number. (invalid format). Why?
import java.io.*; public class Solution { public static void main(String[] args) throws Exception { InputStream inputStream = System.in; Reader inputStreamReader = new InputStreamReader(inputStream); BufferedReader bufferedReader = new BufferedReader(inputStream
1/5/19
1627
views
4
comments
0
Nazim Haider
Level 2
Mumbai
Question about the task
Calculate the circumference of a circle
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
help me please
public class Solution { public static void main(String[] args) { printCircleCircumference(5); Double pi = 3.14; Double C; C = 2*3.14*radius } public static void printCircleCircumference(int radius) { //write your code here System.out.println(C);
10/27/18
1541
views
6
comments
0
bri
Level 7
Sevilla
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
Where are there sources to know this?
Looking in the help section, either I've skipped a lesson inadvertently or people are getting responsesfrom other sources. We've seen how to get min and max briefly withsome examples of the if and else when there are 2 numbers concerned. How on earth are we expected to reasonably do this in a SIMPL
1/19/19
1294
views
2
comments
0
IvanNik
Level 15
Sofia
Question about the task
In the blue depths of the stack trace…
Java Syntax
,
Level 9
,
Lesson 2
Under discussion
I'm not sure what I have to "catch" in this task
It could be this: public static void main(String[] args) throws Exception { int deep = getStackTraceDepth(); System.out.println(deep-Thread.currentThread().getStackTrace().length); } public static int getStackTraceDepth() { return Thread.currentThread().getStackTrace
1/19/19
1598
views
1
comment
0
ManasaBhattaru
Level 10
Bangalore
Under discussion
https://codegym.cc/quests/lectures/questsyntax.level07.lecture06
Not able to figure out the issue with code.. Pgm is meant to fnd the minimum of the arraylist.. https://codegym.cc/quests/lectures/questsyntax.level07.lecture06 Code: import java.util.ArrayList; import java.io.BufferedReader; import java.io.InputStreamReader; /* shortest string */ public class S
1/19/19
1471
views
3
comments
0
Lukasz
Level 14
Wrocław
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Resolved
What is wrong here
Input: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Output: Divisible by 3: 3 6 9 12 15 18 Divisible by 2: 2 4 6 8 10 12 14 16 18 20 Rest: 1 5 7 11 13 17 19
1/19/19
1927
views
1
comment
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
how to resolve this task?
need help
1/10/19
1863
views
1
comment
0
Sourav Kumar Rana
Level 9
Delhi
Question about the task
Drawing lines
Java Syntax
,
Level 4
,
Lesson 13
Under discussion
solution
package com.codegym.task.task04.task0438; /* Drawing lines */ public class Solution { public static void main(String[] args) throws Exception { for(int i=0;i<10;i++) { System.out.print("8"); }//write your code here for(int i=0;i<10;i++) {
1/14/19
1529
views
2
comments
0
Mohammed Aabid Chouhan
Level 2
Mumbai
Question about the task
Contract
Java Syntax
,
Level 1
,
Lesson 6
Under discussion
I can't find unlock next lesson on level 1 lesson 6. I don't know why this is happening everytime
I can't find unlock next lesson on level 1 lesson 6. I don't know why this is happening everytime
1/18/19
1324
views
3
comments
0
manoj deo
Level 3
Jakarta
Question about the task
Print three times
Java Syntax
,
Level 2
,
Lesson 8
Resolved
help me
whats the problem?
9/21/18
1878
views
2
comments
0
Mohammed Amine EL AMRANI
Level 11
Rabat
Question about the task
Number of letters
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
I didn't understand the question
Hello, Could someone explain me the question because i didn't understand it, and give me an exemple : Enter 10 strings from the keyboard and count the number of different letters in them (for the 26 lowercase letters of the English alphabet). Display the results on the screen in alphabetical orde
1/18/19
1267
views
1
comment
0
Show more
1
...
350
351
352
353
354
...
374
Please enable JavaScript to continue using this application.