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
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
2/6/19
1922
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?
2/6/19
1761
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
10/3/18
2120
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?
2/3/19
1856
views
5
comments
0
Andrew
Level 29
Seattle
Question about the task
Chicken factory
Java Core
,
Level 4
,
Lesson 6
Resolved
Frustrated with the getDescription() verification
I've been trying all kinds of combinations from other posts for over 30 minutes now and still can't get it to verify. This is a poorly written exercise. Tried with/without a space after super.getDescription(). Tried hardcoding the country and using Contintent.<country name>; tried with NorthA
1/30/19
2168
views
12
comments
1
Raisa Toscano
Level 27
Tepic
Question about the task
Exception invasion
Java Core
,
Level 4
,
Lesson 8
Resolved
why can't i add the expetions to the list?
private static void initExceptions() { // The first exception try { float i = 1 / 0; } //write your code catch (TypeNotPresentException e){ exceptions.add(e); } catch (SecurityException e){ exceptions.ad
1/26/19
1957
views
2
comments
0
Sindhura
Level 15
Delhi
Question about the task
Janitorial services
Java Core
,
Level 4
,
Lesson 8
Under discussion
whats the problem with this..Not verifying b:(
package com.codegym.task.task14.task1415; import java.util.ArrayList; import java.util.List; /* Janitorial services */ public class Solution { public static void main(String[] args) { List apartments = new ArrayList<>(); apartments.add(new OneRoomApt()); apartm
10/16/18
2196
views
6
comments
1
M suleman
Level 20
Lahore
Question about the task
Janitorial services
Java Core
,
Level 4
,
Lesson 8
Under discussion
not verify
package com.codegym.task.task14.task1415; import java.util.ArrayList; import java.util.List; /* Janitorial services */ public class Solution { public static void main(String[] args) { List<Apartment> apartments = new ArrayList<>(); apartments.add(new OneRoomApt(
10/29/18
1598
views
2
comments
0
shaan mohd khan
Level 13
Jhansi
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
what's wrong in my code...
package com.codegym.task.task07.task0712; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; /* Shortest or longest */ public class Solution { public static void main(String[] args) throws Exce
2/5/19
1577
views
2
comments
0
Yusra Ansari
Level 9
Karachi
Question about the task
The end
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
Can someone help?
package com.codegym.task.task07.task0722; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; /* The end */ public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader
9/27/18
1855
views
6
comments
0
Alex Balandinos
Level 18
Lusaka
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 4
Archived
Hey y'all ? I don't understand the code to make the number double if it's postive.....
2/5/19
1948
views
7
comments
0
Jyothi
Level 20
Question about the task
Shuffled just in time
Java Syntax
,
Level 7
,
Lesson 12
Resolved
Verify fails for moving m strings.
Please advise. Screen output from the program (System.out) In Spain Stays Mainly The Rain Input data (System.in) 6 2 The Rain In Spain Stays Mainly
12/27/18
1966
views
3
comments
0
Naina Sahu
Level 4
Mumbai
Question about the task
Multiplication table
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
Help
what's the mistake in this code. Using while loop.
2/4/19
1688
views
5
comments
0
Tapan Kumar
Level 8
Question about the task
The basis of a wheel
Java Syntax
,
Level 5
,
Lesson 9
Under discussion
why is it failed?
Don't know
2/5/19
1531
views
1
comment
0
Tapan Kumar
Level 8
Question about the task
Walking in circles
Java Syntax
,
Level 5
,
Lesson 9
Under discussion
Don't undrstand why it is failed ?
Help
2/5/19
1581
views
1
comment
0
Fadi AlSaidi
Level 13
Carrollton
Question about the task
Task about algorithms
Java Syntax
,
Level 9
,
Lesson 11
Resolved
words in Ascending order
I am getting the required results per the example provided, but still failing the "The displayed words should be sorted in ascending order (using the provided isGreaterThan method)" !!! any words of advice?
2/2/19
1815
views
2
comments
0
hidden #10424566
Level 7
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Kindly please help me understand this challenge i have tried many methods yet nothing works
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) { int m3=min(a,b); int minValue; int m1; if(c
2/4/19
1728
views
8
comments
0
Dmitriy Konoplev
Level 11
Khabarovsk
Question about the task
Going national
Java Syntax
,
Level 8
,
Lesson 11
Archived
What about the space at the end?
I solved this task this way: char[] list = s.toCharArray(); for (int i = 0; i < list.length; i++) { list[0] = Character.toUpperCase(list[0]); String n = String.valueOf(list[i]); if (n.equals(" ")) list[i+1] = Character.toU
2/4/19
1354
views
3
comments
0
Aayush vyas
Level 2
Bangalore
Question about the task
Our first converter!
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
solution of convert to celsius to farenheit
public class Solution { public static void main(String[] args) { System.out.println(convertCelsiusToFahrenheit(41)); } public static double convertCelsiusToFahrenheit(int celsius) { //write your code here double cel=celsius; double Fahrenheit = cel * 9/5 + 3
2/3/19
1643
views
1
comment
0
Jane
Level 3
Cape Town
Resolved
IntelliJ 2018.3.4 Homework Plugin Install HELP (Windows 10)
Is there anyone who can help me figure out why I don't see the task options after I installed the plugin and restarted IJ? I don't see the 6 buttons, running version 2018.3.4. Running windows 10 64-bit can see here in the screenshot that the plugin is enabled: But on startup there are no 6 but
1/31/19
1907
views
4
comments
0
bri
Level 7
Sevilla
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
It keeps telling me I have an issue in line 10 - not sure what the issue is.
It keeps telling me I have an issue in line 10 - not sure what the issue is - I am using intelliJ
2/3/19
1535
views
3
comments
0
shaan mohd khan
Level 13
Jhansi
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Archived
code running right.but not verifying.help me asap
public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int maximum=0; //write your code here ArrayList data=new ArrayList<>(); int i;int n=0;
2/2/19
1721
views
5
comments
0
Usha Mathivanan
Level 15
CHENNAI
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
error : line 19 : 'else' without 'if' , Please help me to resolve this error... !!!
package com.codegym.task.task04.task0409; /* Closest to 10 */ public class Solution { public static void main(String[] args) { displayClosestToTen(8, 11); displayClosestToTen(7, 14); } public static void displayClosestToTen(int a, int b) { int num1 = abs(10
2/2/19
1622
views
3
comments
0
Balasca Andrei
Level 7
Iasi
Question about the task
Controlling body weight
Java Syntax
,
Level 6
,
Lesson 8
Resolved
do not understand
can someone tell me if there is a problem in the code or it is a BUG?? thx
2/3/19
2121
views
2
comments
0
Rishi Ghatta
Level 2
Miller Place
Question about the task
One cat isn't enough
Java Syntax
,
Level 2
,
Lesson 3
Under discussion
I don't know how to complete this Help!!
how do i do this at all
11/6/18
1823
views
6
comments
0
Kshitij Pimple
Level 2
Mumbai
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
what will be the output and please explain also?
Implement the print method In the print method, display the passed string 4 times. Each time, on a new line. Requirements: 1. The program should display text on the screen. 2. The main method should not call System.out.println or System.out.print. 3. The print method should display the text on the
2/3/19
1875
views
3
comments
0
Dilip Sahu
Level 2
Mumbai
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
check please what's wrong?
Last condition is not applying.
1/31/19
1506
views
4
comments
0
lordheraldor
Level 23
Newark
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Resolved
Produces the correct result but still getting an error.
Did I make a typo or something or is my code have an issue that I'm oblivious to?
1/28/19
1516
views
6
comments
0
Jeff Jeffy
Level 15
Irvine
Question about the task
Time conversion
Java Syntax
,
Level 3
,
Lesson 5
Resolved
Why wont the compiler accept it?
This is my code: package com.codegym.task.task03.task0312; /* Time conversion */ public class Solution { //write your code here public static int convertToSeconds(int hour){ return hour*60*60; } } public static void main(String[] args) { //write your code her
1/21/19
2306
views
2
comments
0
Jeff Jeffy
Level 15
Irvine
Resolved
I do think my code should be returning the correct answer, but, it wont verify.
:( Please help. All but the last conditions are met.
1/7/19
1354
views
4
comments
0
Show more
1
...
347
348
349
350
351
...
374
Please enable JavaScript to continue using this application.