CodeGym
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
  • Andrei Stratu
    Level 18
    Iasi
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Under discussion
    Code runs I get the desired output but i cant pass it. Some help please?
    • 28.03.2019
    • 1247views
    • 2comments
    0
  • Ash Ka
    Level 13
    Calgary
    Question about the task Initializing cats
    Java Syntax, Level 5, Lesson 7
    Resolved
    What's wrong here ?What's wrong here ?
    • 27.03.2019
    • 1949views
    • 3comments
    0
  • gery
    Level 9
    Islamabad
    Question about the task 20 words that start with the letter "L"
    Java Syntax, Level 8, Lesson 8
    Resolved
    Hashset correction for, cannot convert boolean to string line#28i read this article, but its not much help https://stackoverflow.com/questions/12014641/java-retrieving-an-element-from-a-hashset public static Set createSet() { //write your code here Set s = new HashSet(); //s.add s.add("Lsss"); s.add("Lsss"); s.a
    • 30.09.2018
    • 2956views
    • 8comments
    0
  • Nurali Khaydarov
    Level 41
    Tashkent
    Question about the task Reading and writing to a file: CodeGym
    Java Core, Level 10, Lesson 2
    Under discussion
    Need helpWhat's wrong?
    • 28.03.2019
    • 1637views
    • 1comment
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task Picking out numbers
    Java Core, Level 9, Lesson 5
    Under discussion
    Next time seems to be good outbutneed hint
    • 28.03.2019
    • 1581views
    • 1comment
    0
  • Ashutosh Sharma
    Level 8
    Delhi
    Question about the task Method quartet
    Java Syntax, Level 8, Lesson 6
    Under discussion
    I am confused about my own solution code. Plz helpI have taken both ArrayList and LinkedList and compared their time consumed in get function, set function, Add Or Insert function and remove function. Is this a right way to solve this question?? Conditions are not getting fulfilled in this solution.
    • 23.03.2019
    • 1383views
    • 4comments
    0
  • GOPALSETTY DINESH
    Level 0
    VISAKHAPATNAM
    Question about the task 2 + 3 = 5
    Java Syntax, Level 0, Lesson 8
    Under discussion
    send me answerpackage com.codegym.task.task01.task0108; /* 2 + 3 = 5 */ public class Solution { public static void main(String[] args) { int a = 3, b = 2; System.out.print("two"); System.out.print(b); System.out.print(" plus "); System.out.print(" minus ");
    • 08.01.2019
    • 1318views
    • 2comments
    0
  • Joy Majumdar
    Level 16
    Kolkata
    Question about the task Make a family
    Java Syntax, Level 8, Lesson 11
    Resolved
    What's wrong ?Why null pointer exception is thrown ?
    • 28.03.2019
    • 2175views
    • 2comments
    0
  • JD Rudie
    Level 13
    Oxford
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Under discussion
    gives me the right result for the test cases, but won't verifyany idea what's wrong with this?
    • 27.03.2019
    • 1168views
    • 5comments
    0
  • Mike McKenna
    Level 25
    Wilmington
    Question about the task Declare variables
    Java Syntax, Level 0, Lesson 4
    Under discussion
    int ? = age;That is my ? how do I make it equal ? I have figured out the string portion of the exercise . Thanks Mike
    • 27.03.2019
    • 3277views
    • 1comment
    0
  • Anjali Sharma
    Level 6
    Chennai
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Under discussion
    Wrong compliationint x = a + 1000; System.out.println("Your salary is:" x "dollars per month."); I wrote exactly the same answer and this is right I guess. still it is showing the error like this... com/codegym/task/task02/task0205/Solution.java:15: error: ')' expected System.out.println("Your s
    • 30.09.2018
    • 1716views
    • 14comments
    0
  • Abdur Rehman
    Level 7
    Faisalabad
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    what is wrong with my code/* Minimum of three numbers */ public class Solution { public static int min(int a, int b, int c) { if ((a<=b) && (a<=c)); { return a; } if ((b<=a) && (b<=c)); { return b; } if ((c<=a
    • 26.03.2019
    • 1314views
    • 2comments
    0
  • Aibohphobia
    Level 1
    Fort Campbell
    Under discussion
    Twice now, (2) Lessons have given exercises that did not cover the material ..Salutations All, On level 1, lessons 3 & 6 provided task requirements that was not covered in course material. I would think it was something I was doing wrong; however I read all the comments and it is clearly happening to others as well. Not sure if it is a "bug" or what the case just might
    • 26.03.2019
    • 998views
    • 1comment
    0
  • JD Rudie
    Level 13
    Oxford
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Under discussion
    not really sure why this code doesn't pass... it passes all test cases i can think ofany ideas?
    • 27.03.2019
    • 1177views
    • 1comment
    0
  • Okanlawon Oluwatobi Damilare
    Level 9
    Banjul
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Under discussion
    don't know why this code is not passing verification. someone should please help.
    • 26.03.2019
    • 1255views
    • 2comments
    0
  • Thebe
    Level 7
    Benares
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    How do I solve thisWhy it doesn't produce maximum
    • 16.01.2019
    • 1834views
    • 4comments
    0
  • sirisha
    Level 3
    Bangalore
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Under discussion
    can someone help me out to fix thishelp me out to solve
    • 04.02.2019
    • 1403views
    • 7comments
    0
  • Bazsó Benjámin
    Level 20
    Szombathely
    Question about the task The end
    Java Syntax, Level 7, Lesson 12
    Resolved
    help plshow can i pass 2nd and 4th req?
    • 26.03.2019
    • 1927views
    • 7comments
    0
  • Mark Harold Atabelo
    Level 3
    Tagbilaran
    Question about the task Repetition is the mother of all learning
    Java Syntax, Level 2, Lesson 8
    Under discussion
    how to implement the method? package com.codegym.task.task02.task0218; /* Repetition is the mother of all learning */ public class Solution { public static void print3(String s) { //write your code here int s; for(int x=0;x<3;x++){ printf(print3); } } public static void main(Str
    • 21.08.2018
    • 2136views
    • 9comments
    0
  • Bazsó Benjámin
    Level 20
    Szombathely
    Question about the task Min and max in arrays
    Java Syntax, Level 7, Lesson 12
    Under discussion
    can this be solved using ArraylistInstead of int[] list = new int[20]; can we solve this exercise using ArrayList list = new ArrayList(); ?
    • 26.03.2019
    • 1172views
    • 1comment
    0
  • daveman
    Level 4
    Budapest
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Whats wrong with this?I tried this solution. It works in Eclipse, but not passed here.... THX
    • 25.03.2019
    • 1592views
    • 3comments
    0
  • ed de asis
    Level 3
    Poughkeepsie
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    plz help with solution.hi what am i missing i realy cant get it... plz more advice... i cant move on to the new task for a like a long time now...
    • 05.01.2019
    • 1144views
    • 3comments
    0
  • Manoj Deo
    Level 3
    Mumbai
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    how?how i am getting the right output but the the condition is not satisfied?
    • 03.01.2019
    • 1181views
    • 5comments
    0
  • Vidhya
    Level 16
    Sunnyvale
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    min of 3 numbersi am unable to find the reason why the attached code is failing verification
    • 25.01.2019
    • 1979views
    • 7comments
    0
  • Anonymous #427092
    Level 3
    Erode
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    What's wrong with my code
    • 23.03.2019
    • 1467views
    • 3comments
    0
  • hacks patel
    Level 20
    Ahmedabad
    Question about the task Initializing cats
    Java Syntax, Level 5, Lesson 7
    Resolved
    everything looks fine .. but I don't know what wrong with my code?everything looks fine .. but I don't know what wrong with my code?
    • 18.12.2018
    • 2457views
    • 2comments
    0
  • Bishal Sharma
    Level 3
    Mumbai
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    what is wrong in this if(a>b|| b>c){ return c; } if(c>b||b>a){ return a; } else{ return b; } }
    • 28.11.2018
    • 1235views
    • 4comments
    0
  • Ashutosh Sharma
    Level 8
    Delhi
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Under discussion
    How to assign the map value in the map variable in the main method. package com.codegym.task.task08.task0816; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.*; /* Kind Emma and the summer holidays */ public class Solution { public static HashMap createMap() throws ParseException { D
    • 24.03.2019
    • 1696views
    • 3comments
    0
  • fady shaker
    Level 7
    Stuttgart
    Question about the task Adding
    Java Syntax, Level 4, Lesson 16
    Under discussion
    help pleas can someone tell me what is the problem the code works well
    • 20.03.2019
    • 1463views
    • 2comments
    0
  • Rusu Adelina
    Level 17
    Iasi
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    Why I get !!!!!The program should display the numbers in descending order----If you enter the numbers 2, 1, 2, then the program should display: 2 2 1.!!!!!! error? public static void main(String[] args) throws Exception { Scanner ad = new Scanner(System.in); int num1 = ad.nextInt(); int num2 = ad.nextInt(); int num3 = ad.nextInt(); if (num1>num2 && num2>num3) {System.out.println(num1 + " " + num2 +
    • 24.03.2019
    • 2129views
    • 2comments
    0
  • 1
  • ...
  • 335
  • 336
  • 337
  • 338
  • 339
  • ...
  • 372
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • 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 a Java developer’s career.
Follow us
Interface language
English
Deutsch Español हिन्दी Français Português Polski বাংলা 简体中文 मराठी தமிழ் Italiano Bahasa Indonesia 繁體中文 Nederlands 日本語 한국어 Bulgarian Danish Hungarian Basa Jawa Malay Norwegian Romanian Swedish Telugu Thai Українська Filipino Turkish Azərbaycan Русский Vietnamese
Programmers Are Made, Not Born © 2025 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2025 CodeGym