CodeGym
Promotion
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
All quests Java Syntax Java Core Java Multithreading Java Collections JSP & Servlets Java Syntax Pro Module 3. Java Professional Module 4. SQL & Hibernate Module 5. Spring Games
All levels Level 0 Level 1 Level 2 Level 3 Level 4 Level 5 Level 6 Level 7 Level 8 Level 9 Level 10 Level 11 Level 12 Level 13 Level 14 Level 15 Level 16 Level 17 Level 18 Level 19 Level 20 Level 21 Level 22 Level 23 Level 24 Level 25 Level 26 Level 27 Level 28
Any status New Discussed Resolved Archived Duplicates
Hot Popular New Old
  • 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 itSo 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
    • 20.01.2019
    • 1198views
    • 7comments
    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
    • 21.01.2019
    • 1328views
    • 3comments
    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 ..
    • 20.01.2019
    • 1006views
    • 2comments
    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.
    • 20.01.2019
    • 1241views
    • 2comments
    0
  • Srividya
    Level 3
    Bangalore
    Question about the task As simple as 2+2
    Java Syntax, Level 1, Lesson 8
    Resolved
    Write a program that calls the sum method with the arguments 2 and 2.Hi, I have tried all possible command lines , but I could not find the solution, Please help. public class Solution { public static void main(String[] args) { int a=2; int b=2; int result=(c); } and then, also tried, public class Solution { pu
    • 25.09.2018
    • 5561views
    • 7comments
    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
    • 05.01.2019
    • 995views
    • 4comments
    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 pleasepublic 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);
    • 27.10.2018
    • 1153views
    • 6comments
    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
    • 19.01.2019
    • 827views
    • 2comments
    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 taskIt 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
    • 19.01.2019
    • 1187views
    • 1comment
    0
  • ManasaBhattaru
    Level 10
    Bangalore
    Under discussion
    https://codegym.cc/quests/lectures/questsyntax.level07.lecture06Not 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
    • 19.01.2019
    • 929views
    • 3comments
    0
  • Jyothi
    Level 20
    Question about the task Greater than 10? You're not a good fit for us
    Java Syntax, Level 8, Lesson 8
    Resolved
    task08.task0814 - Greater than 10? You're not a good fit for ustask08.task0814 - Greater than 10? You're not a good fit for us When I run it has removed elements > 10. But not according to codegym vaerify?
    • 11.12.2018
    • 1615views
    • 5comments
    0
  • Lukasz
    Level 14
    Wrocław
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Resolved
    What is wrong hereInput: 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
    • 19.01.2019
    • 1558views
    • 1comment
    0
  • Jyothi
    Level 20
    Question about the task HashMap of 10 pairs
    Java Syntax, Level 8, Lesson 3
    Resolved
    task08.task0802 - HashMap of 10 pairstask08.task0802 - HashMap of 10 pairs Initialization failing verify. why?
    • 11.12.2018
    • 1312views
    • 3comments
    1
  • 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
    • 10.01.2019
    • 1335views
    • 1comment
    0
  • Sourav Kumar Rana
    Level 9
    Delhi
    Question about the task Drawing lines
    Java Syntax, Level 4, Lesson 13
    Under discussion
    solutionpackage 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++) {
    • 14.01.2019
    • 1141views
    • 2comments
    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 everytimeI can't find unlock next lesson on level 1 lesson 6. I don't know why this is happening everytime
    • 18.01.2019
    • 895views
    • 3comments
    0
  • manoj deo
    Level 3
    Jakarta
    Question about the task Print three times
    Java Syntax, Level 2, Lesson 8
    Resolved
    help mewhats the problem?
    • 21.09.2018
    • 1407views
    • 2comments
    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 questionHello, 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
    • 18.01.2019
    • 930views
    • 1comment
    0
  • Avinash Rana
    Level 7
    Kolkata
    Under discussion
    The object ive of this project is to process the results of an examination held in a s chool . All the students were tested in 5 subjects - English, Mathematics, Physics, Chemistry and Computers. The marks scored b y the students has been provided in the file - results.txt. The objective is tcan anyone help me with this?
    • 18.01.2019
    • 1014views
    • 1comment
    0
  • Meshack
    Level 8
    Thika
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Resolved
    HelpKindly help, the second call to displayClosestToTen() function doesn't display anything,
    • 18.01.2019
    • 1095views
    • 2comments
    0
  • Jane
    Level 3
    Cape Town
    Question about the task Our first converter!
    Java Syntax, Level 2, Lesson 2
    Under discussion
    Rusty Math HelpHi there, So I didn't have a hard time trying to put the code together, but I had a hard time with converting the formula. I haven't been in math class in over a decade, so can someone please explain to me how to get from TC = (TF - 32) * 5/9 to TF = ... Thank you
    • 17.01.2019
    • 939views
    • 5comments
    0
  • Laxmidhar Mishra
    Level 12
    Mumbai
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Under discussion
    Hi, Am facing error as It looks like you made a typo or forgot to add 1000.How to correct it.package com.codegym.task.task02.task0205; /* Pay raise */ public class Solution { public static void main(String[] args) { hackSalary(7000); } public static void hackSalary(int a) { //write your code here a=a+1000; System.out.println("Your salary is: "
    • 13.01.2019
    • 1003views
    • 3comments
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task In decreasing order
    Java Syntax, Level 7, Lesson 12
    Under discussion
    What is wrong here?help
    • 14.01.2019
    • 1325views
    • 7comments
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Under discussion
    need helpoutput: lyre love love rose Why rose is in output?
    • 11.01.2019
    • 1254views
    • 3comments
    1
  • srikanth
    Level 10
    Bangalore
    Under discussion
    which statement in this code is not satisfying task conditions ?{ public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String number=reader.readLine(); int num=Integer.parseInt(number);
    • 17.01.2019
    • 921views
    • 1comment
    0
  • Dreni Mujaj
    Level 7
    Peja
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Under discussion
    Please help me.I'm stuck for hoursIt can't compile.Its says 1)"cannot find symbol symbol: class BufferedReader location: class com.codegym.task.task05.task0507.Solution: Solution.java, line: 11, column: 8" 2)cannot find symbol symbol: class BufferedReader location: class com.codegym.task.task05.task0507.Solution: Solution.java, l
    • 17.01.2019
    • 1063views
    • 1comment
    0
  • Vijay Rangan
    Level 5
    Jakarta
    Question about the task Positive number
    Java Syntax, Level 4, Lesson 7
    Under discussion
    cant compilecant compile this program
    • 30.11.2018
    • 1025views
    • 5comments
    0
  • Arvind Prakhar
    Level 7
    Dhanbad
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    2 errorsMy first two condition is not full filled .But why its not getting full filled instead i have initiated the ArrayList and took input from user.So why its showing error
    • 22.12.2018
    • 1452views
    • 3comments
    0
  • Varunkumar
    Level 3
    Chennai
    Question about the task Square of a number
    Java Syntax, Level 1, Lesson 8
    Archived
    How to call a method in java??https://codegym.cc/tasks/com.codegym.task.task01.task0127
    • 16.01.2019
    • 1020views
    • 2comments
    0
  • WatWat
    Level 9
    Vancouver
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Under discussion
    Ran with correct output an no errors why is it not being verifiedNot being verified. Please look at my code
    • 14.10.2018
    • 1184views
    • 3comments
    0
  • 1
  • ...
  • 338
  • 339
  • 340
  • 341
  • 342
  • ...
  • 362
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Game Projects
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
  • Affiliate Program
Company
  • About us
  • Contacts
  • Reviews
  • Press Room
  • CodeGym for EDU
  • FAQ
  • Support
CodeGym CodeGym is an online course for learning Java programming from scratch. This course is a perfect way to master Java for beginners. It contains 1200+ tasks with instant verification and an essential scope of Java fundamentals theory. To help you succeed in education, we’ve implemented a set of motivational features: quizzes, coding projects, content about efficient learning and Java developer’s career.
Follow us
Interface language
Programmers Are Made, Not Born © 2023 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2023 CodeGym
This website uses cookies to provide you with personalized service. By using this website, you agree to our use of cookies. If you require more details, please read our Terms and Policy.