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
  • hidden #10515202
    Level 20
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    solutionin print method: add this 4 times, it works System.out.println(s); System.out.println(s); System.out.println(s); System.out.println(s);
    • 11/10/19
    • 1340views
    • 1comment
    0
  • Satya Vath
    Level 31
    Vijayawada
    Question about the task AmigoOutputStream
    Java Core, Level 8, Lesson 8
    Under discussion
    Please HelpWhere is the Problem
    • 4/19/19
    • 1712views
    • 5comments
    2
  • Kent Hervey
    Level 19
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Under discussion
    Why does my verification need an upper bound change on condition?See my code below Note: originalSize--; I put this in because when I remove an item I need to stop sooner than otherwise or else I will be out of bound. It works, but then I noticed others' are working without it. Why do I need it and other don't? int originalSize = list.size();
    • 11/16/19
    • 974views
    • 1comment
    0
  • Mark Fernandez
    Level 17
    Mumbai
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Resolved
    unable to get output and can we do it without using 2nd arraylistpackage com.codegym.task.task07.task0716; import java.util.ArrayList; /* R or L */ public class Solution { public static void main(String[] args) throws Exception { ArrayList list = new ArrayList(); list.add("rose"); // 0 list.add("love"); // 1 list.add("lyre"
    • 3/4/19
    • 2097views
    • 12comments
    0
  • Dusernajder
    Level 20
    Budapest
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Resolved
    Can someone tell me why? SPOILER: Answer in question?!So, I already made the task, but there was a little part of it where I don't know was going on. On the first picture, where I declare the newList like this: The for loop was decrasing the lists size, when a word that contained the letter 'r' was in the scope. So when "rose" came, the loop removed i
    • 5/30/19
    • 1793views
    • 8comments
    0
  • Anita Pal
    Level 14
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Under discussion
    I am not able to satisfy second conditionpackage com.codegym.task.task07.task0716; import java.util.ArrayList; /* R or L */ public class Solution { public static void main(String[] args) throws Exception { ArrayList list = new ArrayList(); list.add("rose"); // 0 list.add("love"); // 1 list.add("lyre
    • 9/22/19
    • 1439views
    • 3comments
    0
  • Bill Hine
    Level 9
    Sarasota
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    please help has been many hours this works with test data but failes task 3 & 4 thank youpackage com.codegym.task.task07.task0708; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; /* Longest string */ public class Solution { private static List strings = new ArrayList(); public static void main(String[] ar
    • 11/15/19
    • 1477views
    • 1comment
    0
  • KnGod
    Level 1
    Havana
    Question about the task Minesweeper (Part 2/16))
    Games, Level 0, Lesson 0
    Under discussion
    what should i put to acomplish the fourth condition? i tried game.setScreenSize(SIDE, SIDE); //but it said i cant call a non static method from a static context
    • 11/15/19
    • 1468views
    • 1comment
    0
  • John
    Level 7
    Houston
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Resolved
    Solutionpublic class Solution { public static void main(String[] args) { hackSalary(7000); } public static void hackSalary(int a) { int salary= a; int newSalary = salary += 1000; System.out.println("Your salary is: " + newSalary + " dollars per month."); } }
    • 5/3/19
    • 1606views
    • 2comments
    1
  • Niladri pradhan
    Level 33
    Mumbai
    Question about the task GCD
    Java Core, Level 4, Lesson 8
    Under discussion
    infinite loopThe code run successfully. i even got an output but at the time of verify it showing infinity loops.please help
    • 8/17/19
    • 1095views
    • 3comments
    0
  • Niladri pradhan
    Level 33
    Mumbai
    Question about the task Finding data inside a file
    Java Core, Level 8, Lesson 11
    Under discussion
    infinity loop problemIt run as expected in intelij. please help
    • 8/27/19
    • 1147views
    • 1comment
    0
  • Niladri pradhan
    Level 33
    Mumbai
    Question about the task Prices
    Java Core, Level 8, Lesson 11
    Under discussion
    please helpverification failed
    • 8/30/19
    • 967views
    • 1comment
    0
  • Lex Medeiros
    Level 18
    San Jose
    Question about the task Finding data inside a file
    Java Core, Level 8, Lesson 11
    Under discussion
    Could someone explain to me the following?I understand what the task requires, however, I am not clear in the steps I should follow to convert the byte data to find the id and display the required information - as you can see from my code. For example, int data = inputStream.read(); is going to give me bytes. It does not give me lines, ch
    • 9/1/19
    • 945views
    • 1comment
    0
  • Rupa Joshi
    Level 29
    Tokyo
    Question about the task Chat (part 16)
    Java Multithreading, Level 6, Lesson 15
    Under discussion
    please help!not been able to validate with the tow throw IOException conditions for both the methods.
    • 11/15/19
    • 1144views
    • 1comment
    0
  • Korab Cenaj
    Level 2
    Wroclaw
    Under discussion
    What are the costs to get the full course?Is it free or do i need to pay after some levels?
    • 12/17/18
    • 1248views
    • 1comment
    0
  • Picvajzmen
    Level 20
    Belgrade
    Question about the task Building a file
    Java Core, Level 8, Lesson 11
    Under discussion
    Not good obviously, but what do you guys think about my solution I sick and tired from this one, I know that it is no good, but wanted to know what do you guys think about it, and what is wrong, I cant look at it anymore, and I have to move on to the next one, because i am stuck at this problem for far too long..
    • 11/12/19
    • 1117views
    • 5comments
    0
  • Jimmy Phan
    Level 7
    Atlanta
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    Surprisingly it works, but not how it should be...right?Surprisingly it works, but not how it should be...right? it ran and display the line of the strings on a new line lol
    • 11/14/19
    • 926views
    • 1comment
    0
  • jorge ives murillo paredes
    Level 40
    New York City
    Question about the task Date formatting
    Java Multithreading, Level 2, Lesson 7
    Under discussion
    whats wrong?what is wrong
    • 11/15/19
    • 1207views
    • 1comment
    0
  • John
    Level 27
    Washington DC
    Question about the task Spaces
    Java Core, Level 8, Lesson 11
    Resolved
    I don't even understand what is being asked...I don't even understand what is being asked...
    • 11/14/19
    • 1256views
    • 1comment
    0
  • Clarendon lee
    Level 8
    Baltimore
    Question about the task One large array and two small ones
    Java Syntax, Level 7, Lesson 4
    Under discussion
    java.lang.ArrayIndexOutOfBoundsException: 9What's my code wrong? java.lang.ArrayIndexOutOfBoundsException: 9 Thanks a lot !!!
    • 11/12/19
    • 1603views
    • 2comments
    0
  • Deborah Wenrich
    Level 7
    Pembroke Pines
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    Can someone check my code? I don't see what I'm missing.
    • 11/14/19
    • 912views
    • 1comment
    0
  • Whitney
    Level 14
    Onalaska
    Question about the task Set of cats
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Removing an object in a Set without an iterator.Hello! Is it possible to remove an object from a Set by a variable within that object? The focus of my question here is cats.remove(Cat.name("Phantom")); I'm receiving a compiling error that Cat symbol cannot be found, but just above this line in the code we created a HashSet with the Cat class
    • 11/14/19
    • 1567views
    • 1comment
    0
  • Clarendon lee
    Level 8
    Baltimore
    Question about the task Ascending numbers
    Java Syntax, Level 6, Lesson 11
    Under discussion
    What's my code wrong?error: cannot find symbol Arrays.sort(list); 21th, line. What's wrong is it? Thanks a lot. ,!
    • 11/10/19
    • 2313views
    • 3comments
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Finding data inside a file
    Java Core, Level 8, Lesson 11
    Under discussion
    Help me pls with thisI need help
    • 6/29/19
    • 878views
    • 1comment
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Picking out numbers
    Java Core, Level 9, Lesson 5
    Under discussion
    Help me pls with thisPls need help
    • 6/29/19
    • 1330views
    • 1comment
    0
  • Satya Vath
    Level 31
    Vijayawada
    Question about the task Reading and writing to a file: CodeGym
    Java Core, Level 10, Lesson 2
    Under discussion
    Please HelpHelp
    • 4/22/19
    • 1334views
    • 1comment
    0
  • Satya Vath
    Level 31
    Vijayawada
    Question about the task Problem solving
    Java Core, Level 9, Lesson 8
    Under discussion
    Please HelpWhere is The Error
    • 4/19/19
    • 1221views
    • 1comment
    0
  • Julian “tar” O.falcon
    Level 8
    Parkersburg
    Under discussion
    Can you JUnit with codegym?I want to build the good habit of Junit testing while i develop.
    • 5/6/19
    • 1224views
    • 1comment
    1
  • Denis
    Level 22
    Kharkiv
    Question about the task Word search
    Java Core, Level 10, Lesson 10
    Under discussion
    What i mush change?Help pls
    • 6/30/19
    • 1252views
    • 1comment
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Rectangle algorithms
    Java Core, Level 10, Lesson 10
    Under discussion
    Need helpWhat is wrong
    • 6/30/19
    • 1341views
    • 1comment
    0
  • 1
  • ...
  • 258
  • 259
  • 260
  • 261
  • 262
  • ...
  • 374
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 © 2026 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2026 CodeGym