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
  • edis emin
    Level 7
    London
    Under discussion
    How do I improve on control flow statements?How do I improve on control flow statements? Right now I am really struggling with exercises which include things like while and for statements. Are there any resources I can use to improve my skills?
    • 29.04.2019
    • 1148views
    • 1comment
    0
  • Mike McKenna
    Level 25
    Wilmington
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    error variable min might not have initalized .Hi, error is return min; ^ Thanks Mike McKenna
    • 29.04.2019
    • 1230views
    • 1comment
    0
  • Lukasz Samulnik
    Level 16
    Warsaw
    Under discussion
    Split screenDoes anyone know how can I restore initial split screen when in exercise view? The one with conditions on the left and code editor on the right? Somehow it turned to look like more like a browser with tabs on top.
    • 26.04.2019
    • 1235views
    • 1comment
    0
  • Mehala
    Level 0
    Question about the task I think being a programmer is cool
    Java Syntax, Level 0, Lesson 3
    Resolved
    what wrong in this code? when I compile it's executing the correct answer, but when I submit for verify it showing the task failed to pass testing.. anyone can u explain thisimport java.util.Scanner; public class Solution { String sc,mc,pc; public static void main(String[] args) { Scanner sc=new Scanner(System.in); String s=sc.nextLine(); System.out.print(s); Scanner mc=new Scanner(System.in); Strin
    • 15.05.2019
    • 1536views
    • 2comments
    0
  • Yash
    Level 15
    Sugar Hill
    Question about the task Day of the week
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Not Working???I don't know why. It should work.
    • 14.05.2019
    • 1151views
    • 1comment
    0
  • Mikayla Pace
    Level 27
    Salt Lake City
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Resolved
    My program does not print out the correct stringI can't figure out why my code isn't printing out the correct string. It seems like it is just returning whatever string is 9 characters long??
    • 14.05.2019
    • 1815views
    • 4comments
    0
  • Sarah
    Level 3
    Nairobi
    Question about the task Kind words for the teacher
    Java Syntax, Level 0, Lesson 4
    Resolved
    errorcom/codegym/task/task01/task0102/Solution.java:12: error: cannot find symbol System.out.printIn("Ellie is clever"); ^ symbol: method printIn(java.lang.String) location: variable out of type java.io.PrintStream Anyone explain to me why am getting this error please, whe
    • 15.05.2019
    • 1310views
    • 2comments
    0
  • ASHUTOSH SHUKLA
    Level 3
    Katni
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Resolved
    How to solve last condition of this task? How to solve last condition cause I don't get it? After trying also it stills shows error in last condition.
    • 02.05.2019
    • 1811views
    • 9comments
    0
  • hidden #10426395
    Level 2
    Question about the task The great purge
    Java Syntax, Level 1, Lesson 8
    Resolved
    Any advice on how I shoud fix my code?Hope for the help guys because I'm stuck.
    • 10.02.2019
    • 1858views
    • 9comments
    0
  • ROBERT KOSS
    Level 3
    Panama City
    Question about the task Favorite poem
    Java Syntax, Level 1, Lesson 8
    Resolved
    can someone give me the code down below please and thank you
    • 28.02.2019
    • 1920views
    • 3comments
    0
  • Peta Velin Zoran
    Level 3
    Timisoara
    Question about the task Choose healthy food! Choose fruit!
    Java Syntax, Level 1, Lesson 8
    Resolved
    Server fails to see both stringsLvl1 Lesson 8 "Choose healthy food! Choose fruit!" -> solution // System.out.print(apple+"\n"+ peach); // is not valid, server only sees one string, even if the result is correct and displayed on two lines.
    • 12.05.2019
    • 1364views
    • 2comments
    0
  • snow
    Level 2
    Varanasi
    Question about the task We don't need any extra lines
    Java Syntax, Level 1, Lesson 7
    Resolved
    Line 16 ,how to get correct answer?Java syntax Level 1 ,lesson 7
    • 01.08.2018
    • 1794views
    • 5comments
    0
  • Rajasekhar
    Level 9
    Palo Alto
    Question about the task Move one static modifier
    Java Syntax, Level 7, Lesson 12
    Under discussion
    Please helpCan Any one can help me on this task please
    • 02.03.2019
    • 1819views
    • 4comments
    0
  • Denis
    Level 25
    Vancouver
    Question about the task Building a file
    Java Core, Level 8, Lesson 11
    Under discussion
    Code works but doesn't pass the verification.Code works but doesn't pass the verification for about 80% WFT ??? ^)
    • 13.05.2019
    • 1320views
    • 2comments
    0
  • Ash Ka
    Level 13
    Calgary
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Under discussion
    My code seems correct but it does not workMy code seems correct but it does not work
    • 09.05.2019
    • 1282views
    • 5comments
    0
  • MakinTosH
    Level 20
    Vilnius
    Question about the task UnsupportedFileName
    Java Core, Level 8, Lesson 8
    Under discussion
    Can't check the string right...Is something wrong with validating string or the exception is not thrown?
    • 14.05.2019
    • 1412views
    • 1comment
    0
  • sailaja
    Level 3
    Hyderabad
    Under discussion
    Write a function that computes the minimum of four numbers. The function min(a, b, c, d) should use (call) the function min(a, b)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 minimum; int e= min(a,b); if(c<=d && c<=e) { minimum = c; }else {
    • 14.05.2019
    • 1424views
    • 2comments
    0
  • sailaja
    Level 3
    Hyderabad
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Under discussion
    I am not sure getting the typo error.Can someone helppackage 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 int salary=a+1000; System.out.println("Your sal
    • 11.05.2019
    • 1515views
    • 4comments
    0
  • JavaJavaJava
    Level 3
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Under discussion
    i need help to find the errorpackage com.codegym.task.task02.task0205; /* Pay raise */ public class Solution { public static void main(String[] args) { hackSalary(7000); } public static void hackSalary(int a) { int Salary = a; int NewSalary= a+1000; System.out.println("Your salary
    • 06.05.2019
    • 1945views
    • 7comments
    0
  • Vadym Opalenyk
    Level 10
    Vyshneve
    Question about the task Three numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    How to make a taskHow to make a task
    • 13.05.2019
    • 1663views
    • 5comments
    0
  • Husain Kothari
    Level 20
    Mumbai
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Under discussion
    It says if an empty string is entered into after the number, it should not lose the number. I am printing the number. What seems to be the problem? public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); HashMap map = new HashMap(); while(true) { String t = reader.readLine(); if(t
    • 11.05.2019
    • 1736views
    • 1comment
    0
  • Ryan
    Level 7
    edmonton
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 7
    Resolved
    Failing verification despite getting correct results. My own run tests pass but I keep failing in the verify. Can someone explain why?
    • 13.05.2019
    • 1491views
    • 3comments
    0
  • Johnson Jose
    Level 10
    Edinburgh
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    I am getting the correct output in IntelliJ but is failing the last condition here. Why?Any help will be appreciated.
    • 14.05.2019
    • 1354views
    • 2comments
    0
  • Kian Sun
    Level 5
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    Returning values inside an if-else statement?Hi! I initially tried solving this task by declaring an int variable "result", doing the comparisons and setting "result" equal to a/b/c depending on the comparison, and returning "result" at the end of the method. However, even though my code worked, the task wouldn't accept it. So I rewrote it to
    • 24.04.2019
    • 5881views
    • 5comments
    0
  • Philip Obiorah
    Level 16
    Port - Harcourt
    Question about the task Changing functionality
    Java Syntax, Level 7, Lesson 12
    Resolved
    Not verifying... Pls what is wrong with this codePlease I can't figure out what is wrong with this code, and why it is not verifying.
    • 09.02.2019
    • 2310views
    • 3comments
    0
  • Shaun Forster
    Level 14
    United Kingdom
    Question about the task Print three times
    Java Syntax, Level 2, Lesson 8
    Under discussion
    My solution is apparently correct but am curious.While it says my solution is correct. Is the output supposed to be "window window window file file file" or is it supposed to be "window file window file window file"?
    • 13.05.2019
    • 1265views
    • 1comment
    0
  • Mukesh Vudayagiri
    Level 10
    Ferokh
    Question about the task The end
    Java Syntax, Level 7, Lesson 12
    Under discussion
    Why?Why the code is working with .equals() method and why not with == operator. Please explain lengthily or provide some links. Thanks.
    • 08.09.2018
    • 1538views
    • 4comments
    0
  • Alex Balandinos
    Level 18
    Lusaka
    Question about the task The end
    Java Syntax, Level 7, Lesson 12
    Under discussion
    Program not displaying and not exiting
    • 07.03.2019
    • 1558views
    • 2comments
    0
  • IrnBruKing
    Level 7
    Falls Church
    Under discussion
    Can't use IntellJ on PC/NetworkHello all, I'm using Codegym at work for training, I'm now at the point where the course is asking to me install IntelliJ. However being at work I can't install other programmes, is there an in-browser version or another alternative I can use? Thanks.
    • 13.05.2019
    • 1120views
    • 1comment
    0
  • Deepak Chandra
    Level 16
    Visakhapatnam
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    Help pleaseWorks fine in intellij an iam getting the answer correct but last condition is not satisfied.Please help. public class Solution { private static Scanner scanner = new Scanner(System.in); public static void main(String[] args) throws Exception { int N = scanner.nextInt(); int
    • 10.05.2019
    • 1802views
    • 8comments
    0
  • 1
  • ...
  • 323
  • 324
  • 325
  • 326
  • 327
  • ...
  • 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