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
Niranjan Soni
Level 15
Bangalore
Question about the task
Shuffled just in time
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
what i'm doing wrong here?
Please help me what's wrong in my code?
29.09.2018
1410
views
5
comments
0
Fadi AlSaidi
Level 13
Carrollton
Question about the task
Ascending numbers
Java Syntax
,
Level 6
,
Lesson 11
Resolved
Tried negatives, different set and Code works, but can't verify
Hi, I know I probably wen the long way to resolve this, but I am a novice. please take a look at my code and let know whats wrong with it. I am failing at the last requirement which is "The displayed numbers should be sorted in ascending order" and they are. I noted as much as i code to make sens
02.12.2018
1729
views
7
comments
0
Sabine Meijran-Prins
Level 7
Enschede
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Resolved
code is not working..
I think I am overlooking why this isn't working..
25.12.2018
1622
views
7
comments
0
hidden #10426395
Level 2
Question about the task
Choose healthy food! Choose fruit!
Java Syntax
,
Level 1
,
Lesson 8
Archived
Any advice would be highly appreciated
Can anyone tell me what is wrong here? I stuck completely on this task and don't know what to do.
10.02.2019
1232
views
2
comments
0
vikr@nt
Level 9
Cincinatti
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
What is wrong with my code? Any body please?
This the output from the terminal. I've created another arraylist as the original arraylist will not maintain the same sequence in which numbers were added. Earlier without second arraylist I was getting same errors. I've debugged the program with various inputs but I'm not able to pass through the
09.02.2019
1492
views
2
comments
0
Mr. Robot
Level 7
Kampala
Under discussion
Finding the minimum number within three numbers
What's the prob with this code.. For printing the minimum of three numbers. public class Solution { public static int min(int a, int b, int c) { //write your code here int x = 0; if(a < b || a < c ) x = a; x = c; return x;
08.02.2019
932
views
1
comment
0
Alan Heffernan
Level 17
Anwoth
Question about the task
Min and max in arrays
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
Having troubles finding my error
After running the application in de-bug the error seems to be on line 20 where I set the minimum value to array[0]. Instead of setting this value it seems to make it equal zero every time! Any idea of how I can change this?
10.02.2019
1122
views
1
comment
0
Jyothi
Level 20
Question about the task
Maximum byte
Java Core
,
Level 8
,
Lesson 3
Resolved
File IO giving issues
java.security.AccessControlException: SecurityManagerProxy.java, method checkRead, line: 118 How should we complete file io tasks? getting the above error.
31.12.2018
1610
views
1
comment
0
Neha Anjum
Level 6
Hyderabad
Question about the task
Triangle of eights
Java Syntax
,
Level 4
,
Lesson 13
Resolved
I made a triangle with a base of 10 and a height of 10.... but still I'm getting this error..
package com.codegym.task.task04.task0437; /* Triangle of eights */ public class Solution { public static void main(String[] args) throws Exception { for (int i=0; i<11; i++) { for (int j=0; j
17.09.2018
2361
views
5
comments
0
Oghoro Bob
Level 23
asaba
Question about the task
Big salary
Java Syntax
,
Level 10
,
Lesson 11
Resolved
please can someone help me out here i don't know what to do here
public static void main(String[] args) { String s = "I do not want to learn Java. I want a big salary"; // Run loop or whatever you ne StringBuilder sb = new StringBuilder(s);Z for(int i=0;i
06.02.2019
1625
views
4
comments
0
Oleg Vanyushkin
Level 18
St.-Petersburg
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
Please help me to find a clue
Sorry, but I am stuck :) Can't pass validation. It says: "Be sure that the variable even stores the correct number of even digits. Maybe you are using it to store the number of odd digits." "Be sure that the variable odd stores the correct number of odd digits. Maybe you are using it to store the n
09.02.2019
1439
views
6
comments
0
rsingh04
Level 6
Mumbai
Question about the task
Console-based piggy bank
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
NOT GETTING THE SUMMATION CORRECTLY
Please help
02.02.2019
1596
views
4
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Sorting even numbers from a file
Java Core
,
Level 3
,
Lesson 11
Archived
What is wrong here?
need hint
08.02.2019
1547
views
3
comments
0
Sumit
Level 2
Delhi
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
why my code is not verifying?
why my code is not verifying?
08.02.2019
1245
views
3
comments
0
Sasha
Level 20
Novi Sad
Question about the task
Clew
Java Core
,
Level 6
,
Lesson 13
Resolved
Some Help?
The task verification request was not completed correctly. Be sure you have a network connection and try again.
23.01.2019
1862
views
7
comments
0
Vijay Rangan
Level 5
Jakarta
Question about the task
Getters and setters for the Dog class
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
why it is showing error
package com.codegym.task.task05.task0503; /* Getters and setters for the Dog class */ public class Dog { //write your code here public String name; public int age; public String getName() { return name; } public String setName(String name) { this.name = name; }
13.01.2019
1517
views
3
comments
0
Vartaman Ingole
Level 6
Wardha
Question about the task
Creating a cat
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
What is the error here??
Cat cat = new Cat(); String name; int age; int weight; int strength;
28.11.2018
1758
views
3
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Reading a file
Java Core
,
Level 3
,
Lesson 11
Archived
Why in line 22 it has to be System.out.print((char)a) instead of System.out.print(a)?
Why in line 22 it has to be System.out.print((char)a) instead of System.out.print(a)? If i did System.out.print(a) it apeared
07.02.2019
1911
views
7
comments
0
jaime
Level 5
Barcelona
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 7
Resolved
dont understad the error.
dont understad the error.
07.02.2019
2019
views
1
comment
0
Joyonta Saha
Level 31
Question about the task
OOP: Fix inheritance problems
Java Core
,
Level 5
,
Lesson 2
Resolved
Any Hints!
Need Help!
28.09.2018
1844
views
6
comments
0
Alex Balandinos
Level 18
Lusaka
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Y'all the code for "the triangle is not possible" is not working some help would be cool...
07.02.2019
1791
views
5
comments
0
Jerry
Level 1
Cape Town
Under discussion
lesson 8
Im strugggling to get a solution to lesson 8, level 0 - can anyone assist please.....
07.02.2019
1000
views
1
comment
0
hidden #10424566
Level 7
Question about the task
Number of days in the year
Java Syntax
,
Level 4
,
Lesson 4
Resolved
I keep getting this error yet i think i've done per the instructions: If the entered year is not a leap year, you should display: "Number of days in the year: 365"
I keep getting this error yet i think i've done per the instructions: If the entered year is not a leap year, you should display: "Number of days in the year: 365"
07.02.2019
2387
views
2
comments
0
Dedcom
Level 19
Lahore
Question about the task
Exception invasion
Java Core
,
Level 4
,
Lesson 8
Resolved
whats the problem here?
how to add exceptions to arraylist?
03.02.2019
1896
views
3
comments
1
lordheraldor
Level 23
Newark
Question about the task
Task about algorithms
Java Syntax
,
Level 9
,
Lesson 11
Resolved
Is anyone getting stuck trying to run the program?
I keep trying to run my program to see if I got the code to run as the solution demands but I keep running into a point where I can enter in blank space and the while loop doesn't terminate and main doesn't move on. What's especially baffling is that I haven't touched main. package com.codegym.tas
05.02.2019
1943
views
9
comments
0
Carlos
Level 3
Barcelona
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
I cant really understand why this worked....can you explain why?
In this part public static int min(int a, int b, int c, int d) { i copied from someone else in another question to solve it return min(min (a, b), min (c,d)); obviously the min (a,b) part i made was the classical previous examples we already did int m2; if (a
05.02.2019
1579
views
8
comments
0
Ramilya
Level 20
SPb
Question about the task
Console-based piggy bank
Java Syntax
,
Level 5
,
Lesson 12
Resolved
What's wrong in my code?
Error: java.lang.NumberFormatException: Solution.java, method main, line: 19 Error converting a string to a number (invalid format). package com.codegym.task.task05.task0529; import java.io.BufferedReader; import java.io.InputStreamReader; /* Console-based piggy bank */ public class Solutio
06.02.2019
1708
views
2
comments
0
Akash sah
Level 8
Kathmandu
Question about the task
Calculate the circumference of a circle
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
what is wrong with this code?
what should be the solution of this problem?
06.02.2019
1583
views
1
comment
0
Nehal Abubakar
Level 7
Karachi
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Archived
Can someone help me out plzzzzz
plzzzzzzzzz
03.10.2018
1941
views
6
comments
1
jim smith
Level 22
Cedar Park
Question about the task
Replacing numbers
Java Core
,
Level 9
,
Lesson 11
Archived
Verification fails
I would guess they have some other weird condition to appease like the ending "." that needs to be accounted for but not in the example file data. Anyone know what it is so I can add it?
03.02.2019
1690
views
5
comments
0
Show more
1
...
343
344
345
346
347
...
371
Please enable JavaScript to continue using this application.