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
  • Aditya Ashtikar
    Level 8
    Kaul
    Question about the task Cat code won't compile
    Java Syntax, Level 7, Lesson 12
    Resolved
    Help!Couldn't understand what's wrong with this?
    • 8/8/18
    • 1727views
    • 5comments
    0
  • SIDDHARTHA BISWAS
    Level 9
    Bhubaneshwar
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    its runing in IntelliJ but not here..whatsthe error help !help
    • 2/11/19
    • 1307views
    • 2comments
    0
  • Riya
    Level 8
    Karnal
    Question about the task Changing functionality
    Java Syntax, Level 7, Lesson 12
    Under discussion
    Task has passed verificationwhen I run the task after putting input it shows Null Pointer exception Tell me the reason
    • 12/8/18
    • 2069views
    • 3comments
    0
  • Sindhura
    Level 15
    Delhi
    Question about the task Shuffled just in time
    Java Syntax, Level 7, Lesson 12
    Under discussion
    help pleasepublic class Solution { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ArrayList s= new ArrayList(); int N=Integer.parseInt(br.readLine()); int M=Integer.parseInt(br.readLine())
    • 10/3/18
    • 1579views
    • 2comments
    0
  • Niranjan Soni
    Level 15
    Bangalore
    Question about the task Shuffled just in time
    Java Syntax, Level 7, Lesson 12
    Under discussion
    what i'm doing wrong here?Please help me what's wrong in my code?
    • 9/29/18
    • 1558views
    • 5comments
    0
  • Fadi AlSaidi
    Level 13
    Carrollton
    Question about the task Ascending numbers
    Java Syntax, Level 6, Lesson 11
    Resolved
    Tried negatives, different set and Code works, but can't verifyHi, I know I probably wen the long way to resolve this, but I am a novice. please take a look at my code and let know whats wrong with it. I am failing at the last requirement which is "The displayed numbers should be sorted in ascending order" and they are. I noted as much as i code to make sens
    • 12/2/18
    • 1969views
    • 7comments
    0
  • Sabine Meijran-Prins
    Level 7
    Enschede
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Resolved
    code is not working..I think I am overlooking why this isn't working..
    • 12/25/18
    • 1937views
    • 7comments
    0
  • hidden #10426395
    Level 2
    Question about the task Choose healthy food! Choose fruit!
    Java Syntax, Level 1, Lesson 8
    Archived
    Any advice would be highly appreciatedCan anyone tell me what is wrong here? I stuck completely on this task and don't know what to do.
    • 2/10/19
    • 1384views
    • 2comments
    0
  • vikr@nt
    Level 9
    Cincinatti
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Under discussion
    What is wrong with my code? Any body please?This the output from the terminal. I've created another arraylist as the original arraylist will not maintain the same sequence in which numbers were added. Earlier without second arraylist I was getting same errors. I've debugged the program with various inputs but I'm not able to pass through the
    • 2/9/19
    • 1677views
    • 2comments
    0
  • Mr. Robot
    Level 7
    Kampala
    Under discussion
    Finding the minimum number within three numbers What's the prob with this code.. For printing the minimum of three numbers. public class Solution { public static int min(int a, int b, int c) { //write your code here int x = 0; if(a < b || a < c ) x = a; x = c; return x;
    • 2/8/19
    • 1093views
    • 1comment
    0
  • Alan Heffernan
    Level 17
    Anwoth
    Question about the task Min and max in arrays
    Java Syntax, Level 7, Lesson 12
    Under discussion
    Having troubles finding my errorAfter running the application in de-bug the error seems to be on line 20 where I set the minimum value to array[0]. Instead of setting this value it seems to make it equal zero every time! Any idea of how I can change this?
    • 2/10/19
    • 1259views
    • 1comment
    0
  • Jyothi
    Level 20
    Question about the task Maximum byte
    Java Core, Level 8, Lesson 3
    Resolved
    File IO giving issuesjava.security.AccessControlException: SecurityManagerProxy.java, method checkRead, line: 118 How should we complete file io tasks? getting the above error.
    • 12/31/18
    • 1759views
    • 1comment
    0
  • Neha Anjum
    Level 6
    Hyderabad
    Question about the task Triangle of eights
    Java Syntax, Level 4, Lesson 13
    Resolved
    I made a triangle with a base of 10 and a height of 10.... but still I'm getting this error..package com.codegym.task.task04.task0437; /* Triangle of eights */ public class Solution { public static void main(String[] args) throws Exception { for (int i=0; i<11; i++) { for (int j=0; j
    • 9/17/18
    • 2596views
    • 5comments
    0
  • Oghoro Bob
    Level 23
    asaba
    Question about the task Big salary
    Java Syntax, Level 10, Lesson 11
    Resolved
    please can someone help me out here i don't know what to do here public static void main(String[] args) { String s = "I do not want to learn Java. I want a big salary"; // Run loop or whatever you ne StringBuilder sb = new StringBuilder(s);Z for(int i=0;i
    • 2/6/19
    • 1815views
    • 4comments
    0
  • Oleg Vanyushkin
    Level 18
    St.-Petersburg
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Under discussion
    Please help me to find a clueSorry, but I am stuck :) Can't pass validation. It says: "Be sure that the variable even stores the correct number of even digits. Maybe you are using it to store the number of odd digits." "Be sure that the variable odd stores the correct number of odd digits. Maybe you are using it to store the n
    • 2/9/19
    • 1668views
    • 6comments
    0
  • rsingh04
    Level 6
    Mumbai
    Question about the task Console-based piggy bank
    Java Syntax, Level 5, Lesson 12
    Under discussion
    NOT GETTING THE SUMMATION CORRECTLYPlease help
    • 2/2/19
    • 1742views
    • 4comments
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task Sorting even numbers from a file
    Java Core, Level 3, Lesson 11
    Archived
    What is wrong here?need hint
    • 2/8/19
    • 1742views
    • 3comments
    0
  • Sumit
    Level 2
    Delhi
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Under discussion
    why my code is not verifying?why my code is not verifying?
    • 2/8/19
    • 1413views
    • 3comments
    0
  • Sasha
    Level 20
    Novi Sad
    Question about the task Clew
    Java Core, Level 6, Lesson 13
    Resolved
    Some Help?The task verification request was not completed correctly. Be sure you have a network connection and try again.
    • 1/23/19
    • 2073views
    • 7comments
    0
  • Vijay Rangan
    Level 5
    Jakarta
    Question about the task Getters and setters for the Dog class
    Java Syntax, Level 5, Lesson 5
    Under discussion
    why it is showing errorpackage com.codegym.task.task05.task0503; /* Getters and setters for the Dog class */ public class Dog { //write your code here public String name; public int age; public String getName() { return name; } public String setName(String name) { this.name = name; }
    • 1/13/19
    • 1659views
    • 3comments
    0
  • Vartaman Ingole
    Level 6
    Wardha
    Question about the task Creating a cat
    Java Syntax, Level 5, Lesson 5
    Under discussion
    What is the error here?? Cat cat = new Cat(); String name; int age; int weight; int strength;
    • 11/28/18
    • 1907views
    • 3comments
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task Reading a file
    Java Core, Level 3, Lesson 11
    Archived
    Why in line 22 it has to be System.out.print((char)a) instead of System.out.print(a)? Why in line 22 it has to be System.out.print((char)a) instead of System.out.print(a)? If i did System.out.print(a) it apeared
    • 2/7/19
    • 2146views
    • 7comments
    0
  • jaime
    Level 5
    Barcelona
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 7
    Resolved
    dont understad the error. dont understad the error.
    • 2/7/19
    • 2163views
    • 1comment
    0
  • Joyonta Saha
    Level 31
    Question about the task OOP: Fix inheritance problems
    Java Core, Level 5, Lesson 2
    Resolved
    Any Hints!Need Help!
    • 9/28/18
    • 2011views
    • 6comments
    0
  • Alex Balandinos
    Level 18
    Lusaka
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Resolved
    Y'all the code for "the triangle is not possible" is not working some help would be cool...
    • 2/7/19
    • 1975views
    • 5comments
    0
  • Jerry
    Level 1
    Cape Town
    Under discussion
    lesson 8Im strugggling to get a solution to lesson 8, level 0 - can anyone assist please.....
    • 2/7/19
    • 1147views
    • 1comment
    0
  • hidden #10424566
    Level 7
    Question about the task Number of days in the year
    Java Syntax, Level 4, Lesson 4
    Resolved
    I keep getting this error yet i think i've done per the instructions: If the entered year is not a leap year, you should display: "Number of days in the year: 365"I keep getting this error yet i think i've done per the instructions: If the entered year is not a leap year, you should display: "Number of days in the year: 365"
    • 2/7/19
    • 2561views
    • 2comments
    0
  • Dedcom
    Level 19
    Lahore
    Question about the task Exception invasion
    Java Core, Level 4, Lesson 8
    Resolved
    whats the problem here?how to add exceptions to arraylist?
    • 2/3/19
    • 2074views
    • 3comments
    1
  • lordheraldor
    Level 23
    Newark
    Question about the task Task about algorithms
    Java Syntax, Level 9, Lesson 11
    Resolved
    Is anyone getting stuck trying to run the program?I keep trying to run my program to see if I got the code to run as the solution demands but I keep running into a point where I can enter in blank space and the while loop doesn't terminate and main doesn't move on. What's especially baffling is that I haven't touched main. package com.codegym.tas
    • 2/5/19
    • 2186views
    • 9comments
    0
  • Carlos
    Level 3
    Barcelona
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    I cant really understand why this worked....can you explain why?In this part public static int min(int a, int b, int c, int d) { i copied from someone else in another question to solve it return min(min (a, b), min (c,d)); obviously the min (a,b) part i made was the classical previous examples we already did int m2; if (a
    • 2/5/19
    • 1846views
    • 8comments
    0
  • 1
  • ...
  • 346
  • 347
  • 348
  • 349
  • 350
  • ...
  • 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