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
Maria Habib
Level 5
Jhelum
Question about the task
The required number
Java Syntax
,
Level 2
,
Lesson 5
Resolved
why it shows error
package com.codegym.task.task02.task0211; /* The required number */ public class Solution { public static void main(String[] args) { int x = 1; int y = 0; y = y + x; x = x * 2; y = y + x; x = x * 2; y = y + x; y = y + x;
13.09.2018
1685
views
3
comments
0
Learner
Level 16
Question about the task
Let's make the code do something useful!
Java Syntax
,
Level 9
,
Lesson 11
Resolved
Verification Error: Be sure that the program copies the contents successfully.
I guess I did not understand the conditions properly. I have tried different permutation and combinations, but it fails to fulfill the third condition.
25.09.2018
2520
views
4
comments
0
mike
Level 3
Mumbai
Question about the task
No comments needed
Java Syntax
,
Level 0
,
Lesson 8
Under discussion
what is the solution
package com.codegym.task.task01.task0107; /* No comments needed */ public class Solution { public static void main(String[] args) { int x = 2; int y = 12; // x = x * 3; // y = x + y; // x = y - x; // y = y - x; System.out.println(x);
25.09.2018
2355
views
2
comments
0
Shahanshah Alam
Level 9
Mohali
Question about the task
StringHelper class
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
help please
what cause erroe
25.09.2018
1703
views
2
comments
0
gery
Level 9
Islamabad
Question about the task
Family census
Java Syntax
,
Level 7
,
Lesson 12
Resolved
how to pass boolean value to a constructor
public Human(String name, boolean sex, int age) { this.name = name; this.sex = sex; this.age = age; } once i call it in main method, how i have pass it in arugment("ss", bolean??, 12);
25.09.2018
5902
views
1
comment
0
gery
Level 9
Islamabad
Question about the task
Family census
Java Syntax
,
Level 7
,
Lesson 12
Resolved
correction needed in client main(String[] args)
"Boolean.True" working fine for first four constructor without parents but its the same that throws error remaining constructor public static void main(String[] args) { // write your code here Human h1 = new Human("s", Boolean.TRUE , 12 ); Human h2 = new Human("s", Boolean
24.09.2018
2473
views
2
comments
0
Joyonta Saha
Level 31
Question about the task
Chicken factory
Java Core
,
Level 4
,
Lesson 6
Under discussion
Fullfilling all the conditions still not passing validation
Need help!
22.09.2018
1707
views
3
comments
0
Joyonta Saha
Level 31
Question about the task
Turnip
Java Core
,
Level 3
,
Lesson 11
Under discussion
How to pass TurnipStory.tell(plot);?
Need help!
20.09.2018
2173
views
2
comments
0
David Sunil
Level 4
kakinada
Question about the task
Escaping characters
Java Syntax
,
Level 3
,
Lesson 6
Resolved
Help
14.08.2018
1746
views
4
comments
0
krushika patel
Level 2
mumbai
Question about the task
Square of a number
Java Syntax
,
Level 1
,
Lesson 8
Archived
??
1. The program should output text. 2. The main method should call the sqr method with 5 as an argument. 3. The main method should display the result of the sqr method. 4. Don't change the sqr method. 5. The displayed text must match the task.
15.08.2018
1619
views
5
comments
0
SAYAN SAMANTA
Level 10
Bangalore
Question about the task
Somehow average
Java Syntax
,
Level 4
,
Lesson 16
Resolved
where is the problem?
package com.codegym.task.task04.task0441; /* Somehow average */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String sN1 = reader.readLine();
17.08.2018
1751
views
1
comment
0
Sameen
Level 5
Resolved
Working with plugin
Can someone guide me on how to use intellJ IDEA for doing CodeGym tasks. Everything is installed, i just can't figure out how to use it for doing tasks. Explanation provided in the section "working with plugin" is not enough for me to understand. If someone could elaborate the one or two steps of th
10.08.2018
1589
views
5
comments
0
krushika patel
Level 2
mumbai
Resolved
whats wrong??
public static int number = 25; public static void main(String[] args) { s=number*number; System.out.println("square of 25 is" +a);
10.08.2018
1368
views
3
comments
0
Riya
Level 8
Karnal
Question about the task
Predictions
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
give reason
why cannot find Symbol: class Scanner error
24.09.2018
1513
views
1
comment
0
Masood
Level 6
Karachi
Question about the task
Roy G. Biv…
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
Order is not correct
Getting the required output as follows, Red Orange Yellow Green Blue Indigo Violet Then why codegym is saying the order is not correct. Codegym please help!
31.08.2018
1751
views
8
comments
0
Nirake_
Level 8
Mumbai
Question about the task
Declare variables
Java Syntax
,
Level 0
,
Lesson 4
Under discussion
what is the matter when it says that :
CLASS INTERFACE OR ENUM EXPECTED.
24.09.2018
1456
views
1
comment
0
Arjun Kiruthivasan
Level 14
Chennai
Question about the task
Let's make the code do something useful!
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
WHERE AM I WRONG??
pls tell me!!!
24.09.2018
1761
views
2
comments
0
gery
Level 9
Islamabad
Question about the task
The end
Java Syntax
,
Level 7
,
Lesson 12
Resolved
unable to start
level 7, lesson 12, name: the end. **stuck at "how to take input untill user types 'the end'"..? public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); ArrayList s = new ArrayList();
24.09.2018
1940
views
12
comments
0
gery
Level 9
Islamabad
Resolved
where correction is necessary
public static void main(String[] args) { Thread.sleep(1000); for (int i = 30; i >= 0; i--) { System.out.println(i); Thread.sleep(1000); //write your code here } System.out.println("Boom!"); }
24.09.2018
1642
views
8
comments
0
R@N@ AHM3D T@RIQ
Level 2
Lahore
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
How print method prinys each string 4 times in main method???
plz explain
20.09.2018
3015
views
5
comments
0
gery
Level 9
Islamabad
Question about the task
Duplicating words
Java Syntax
,
Level 7
,
Lesson 9
Resolved
out of memory error on line 37
BufferedReader b = new BufferedReader(new InputStreamReader(System.in)); ArrayList s = new ArrayList(); for(int a=0; a<10; a++) { s.add(b.readLine()); } ArrayList result = doubleValues(s); for( String x: result)
23.09.2018
1804
views
1
comment
0
shreya
Level 2
Question about the task
Choose healthy food! Choose fruit!
Java Syntax
,
Level 1
,
Lesson 8
Archived
I can't able to complete the task?
package com.codegym.task.task01.task0135; /* Two roads diverged in a yellow wood */ public class Solution { public static void main(String[] args) { System.out.println("Two roads diverged in a yellow wood,"); System.out.println("And sorry I could not travel both"); S
07.08.2018
2324
views
5
comments
1
sowjanya sripada
Level 2
Hyderabad
Question about the task
Square of a number
Java Syntax
,
Level 1
,
Lesson 8
Archived
is anything missing ?
main method should display result of sqr method .need clarification.
21.09.2018
1533
views
5
comments
0
Neha Anjum
Level 6
Hyderabad
Question about the task
Cat register
Java Syntax
,
Level 4
,
Lesson 2
Resolved
What am I missing..?
package com.codegym.task.task04.task0404; /* Cat register */ public class Cat { private static int catCount = 0; public void addNewCat(int catCount) { this.catCount = catCount; } public static void main(String[] args) { Cat cat = new Cat();
15.09.2018
2231
views
5
comments
0
Shahanshah Alam
Level 9
Mohali
Question about the task
Create a Friend class
Java Syntax
,
Level 5
,
Lesson 7
Under discussion
help please...what is wrong in this code?
public class Friend { String name; int age; char sex; public void initialize(String name){ this.name = name; } public void initialize(String name , int age){ this.name = name; this.age = age; } public void initialize(String name , int age, char sex){ this.name =
22.09.2018
1624
views
2
comments
0
Nirake_
Level 8
Mumbai
Question about the task
I think being a programmer is cool
Java Syntax
,
Level 0
,
Lesson 3
Under discussion
Dark matter not received
I was able to do my first program but I did not got the dark matter.
21.09.2018
1536
views
2
comments
0
Khurram
Level 16
Lahore
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Resolved
whats wrong with this
what seems to be the problem?
03.09.2018
2079
views
7
comments
0
Nirake_
Level 8
Mumbai
Under discussion
I DID NOT GOT MY DARK MATTER!!!!!!!!
I DID FINISHED MY 3 PROGRAMS AND NOE IT IS PROPERLY RUNNING BUT I DID NOT GOT THE DARK MATTER HOW WOULD I CONTINUE.......!!!!!
22.09.2018
1523
views
1
comment
0
Deepak Rana
Level 4
Bazpur
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
i already spent 1 hour nothing happens, dont want to waste more.....
package com.codegym.task.task02.task0217; /* Minimum of four numbers */ public class Solution { public static int min(int a, int b, int c, int d) { //write your code here int t; if(a
21.09.2018
1951
views
2
comments
0
gery
Level 9
Islamabad
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
how Using a loop, find the longest string in the list.
so far 'm abl to write code upto this. condition 3 needs solution in this, i read other soutions but unable to understand them. BufferedReader b = new BufferedReader(new InputStreamReader(System.in)); ArrayList l = new ArrayList(); for(int i=0; i<5; i++) {
21.09.2018
2115
views
4
comments
0
Show more
1
...
365
366
367
368
369
...
372
Please enable JavaScript to continue using this application.