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
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
1442
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
1351
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
1811
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
1245
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
1669
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
1870
views
4
comments
0
Neha Anjum
Level 6
Hyderabad
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Archived
problem here :P
package com.codegym.task.task05.task0532; import java.io.*; /* Task about algorithms */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int maximum = 5; /
21.09.2018
1647
views
1
comment
0
manoj deo
Level 3
Jakarta
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
what to do next?
??
07.09.2018
1484
views
11
comments
0
gery
Level 9
Islamabad
Question about the task
Maximum in an array
Java Syntax
,
Level 7
,
Lesson 4
Resolved
identify correction in arrays
i entered value in (system.in) both in vertical manner and horizontal manner and then click the run button, error and if i click without entering value, even then the same error.. public static void main(String[] args) throws Exception { int[] array = initializeArray(); int max = m
20.09.2018
1828
views
3
comments
0
shreya
Level 2
Question about the task
Square of a number
Java Syntax
,
Level 1
,
Lesson 8
Archived
what's wrong with this code?
package com.codegym.task.task01.task0127; /* Square of a number */ public class Solution { public static void main(String[] args) { int a = sqr(5); System.out.println("the square of 5"+ a * a); } public static int sqr(int a) { return a * a; } }
07.08.2018
2191
views
17
comments
2
Tayyab Mubeen
Level 16
Lahore
Resolved
What is more convenient..!!!!!
What is more convenient to use scanner class or bufferreader... am confused
19.09.2018
1250
views
2
comments
0
stevenbadang
Level 1
Davao
Question about the task
Contract
Java Syntax
,
Level 1
,
Lesson 6
Resolved
how to check typo?
how to solve ..the system says that i have a typo error i think
05.08.2018
2197
views
5
comments
0
Sawankumar
Level 4
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Resolved
what's wrong in this code..?
System.out.println("Your salary is: "+a+" dollars per month");
01.08.2018
1605
views
5
comments
0
Arjun Kiruthivasan
Level 14
Chennai
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
HELP ME??
GIVE ME A SOLUTION
20.09.2018
1856
views
1
comment
0
saiteja velagandula
Level 2
Hyderabad
Under discussion
Can anyone explain this elaborately
Save a reference to the previously created Woman object in man.wife. Save a reference to the previously created Man object in a woman. husband (Hint: woman.husband = man). I didn't understand this.
20.09.2018
1281
views
1
comment
0
Arjun Kiruthivasan
Level 14
Chennai
Question about the task
Make a family
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
any one help me?
where am i mistaken?? pls show me a solution
20.09.2018
1461
views
1
comment
0
Arjun Kiruthivasan
Level 14
Chennai
Question about the task
Checking the order
Java Syntax
,
Level 7
,
Lesson 9
Resolved
How to solve this?
How to solve this?
15.09.2018
1795
views
1
comment
0
Arjun Kiruthivasan
Level 14
Chennai
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Resolved
how to overcome this problem?
how to overcome this problem?
15.09.2018
2311
views
1
comment
0
DuesVultKek
Level 7
Jacksonville
Question about the task
Let's put together a rectangle
Java Syntax
,
Level 5
,
Lesson 7
Under discussion
Little help...
"- create a copy of another rectangle passed as an argument" - This is what I don't understand here so please kindly help me This statement applies to 4th initialize method only. Thanks.
18.09.2018
2060
views
2
comments
0
WonderWoman
Level 8
Bangalore
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
All conditions except - "3. After entering -1, the program must correctly terminate."
The code apparently satisfies all conditions except "3. After entering -1, the program must correctly terminate." Though with "Run (without verification)", I get the required results for all the combinations listed..
17.09.2018
1511
views
4
comments
0
Shahanshah Alam
Level 9
Mohali
Question about the task
Positive number
Java Syntax
,
Level 4
,
Lesson 7
Under discussion
help
what is wrong in this? help please
18.09.2018
1239
views
4
comments
0
Khurram
Level 16
Lahore
Question about the task
Checking the order
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Last condition is not verified. Can anyone please check what's wrong with the code
package com.codegym.task.task07.task0718; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; /* Checking the order */ public class Solution { public static void main(String[] args) throws IOException { //write your
15.09.2018
1372
views
2
comments
0
Khurram
Level 16
Lahore
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Resolved
what seems to be the problem here?
i have copied the exact code and it runs perfectly fine in IntelliJ, but here it is not accepting the solution, can anyone suggest what the problem might be
08.09.2018
1886
views
2
comments
0
Neha Anjum
Level 6
Hyderabad
Question about the task
Implement the fight method
Java Syntax
,
Level 5
,
Lesson 5
Resolved
Help please...
public class Cat { public String name; public int age; public int weight; public int strength; public static void main(String[] args) { Cat cat1 = new Cat(); cat1.age = 4; cat1.strength = 20; cat1.weight = 20; cat1.name = "Cat1";
18.09.2018
2157
views
4
comments
0
DuesVultKek
Level 7
Jacksonville
Question about the task
Multiplication table
Java Syntax
,
Level 3
,
Lesson 6
Resolved
Help me please
The code is perfect except the lines printed are 11. Give my code a try (Don't verify it, instead run it) and you'll see what I mean. And if you do, there's a space above the 1 2 3 ... 9 10 which is somehow I don't know how to remove that one. Please let us help each other.
26.08.2018
1677
views
4
comments
0
Sandeep
Level 3
Question about the task
Parenthetical brainteaser
Java Syntax
,
Level 3
,
Lesson 4
Resolved
can anybody help me ! Am getting output as 539
package com.codegym.task.task03.task0306; /* Parenthetical brainteaser */ public class Solution { public static void main(String[] args) { System.out.println((1+(2*3+4))*5+6*(7+8*9)+10); } }
15.08.2018
2165
views
3
comments
0
Chinmay Sawant
Level 0
Mumbai
Question about the task
Bugs and features
Java Syntax
,
Level 0
,
Lesson 8
Resolved
How to solve these?
PLEASE help me out
13.08.2018
1508
views
9
comments
0
Anonymous #297745
Level 3
Jaurian
Question about the task
Choose healthy food! Choose fruit!
Java Syntax
,
Level 1
,
Lesson 8
Archived
Need help
Please help me to solve this code System.out.println("Two roads diverged in a yellow wood,"); System.out.println("And sorry I could not travel both"); System.out.println("And be one traveler, long I stood"); System.out.print(" ");
14.09.2018
1289
views
4
comments
0
Neha Anjum
Level 6
Hyderabad
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Why am i getting this error
import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); int a = Integer.parseInt(bufferedReader.readLine()); int b = Integer.parseInt(buffer
17.09.2018
1624
views
9
comments
0
Manimegalai
Level 3
Kanchipuram
Question about the task
Hello, StarCraft!
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
Whats wrong in my code
public class Solution { public static void main(String[] args) { Zerg z1=new Zerg(); z1.name="aa"; Zerg z2=new Zerg(); z2.name="aa"; Zerg z3=new Zerg(); z3.name="aa"; Zerg z4=new Zerg(); z4.name="aa"; Zerg z5=new Zerg();
17.09.2018
1926
views
3
comments
0
Show more
1
...
360
361
362
363
364
365
366
Please enable JavaScript to continue using this application.