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
  • SAYAN SAMANTA
    Level 10
    Bangalore
    Question about the task Words in reverse
    Java Syntax, Level 7, Lesson 9
    Resolved
    where is the problem situated? public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String[] words = new String[5]; for(int i=0;i<5;i++){ words[i] = reader.readLine(); } ArrayList<String>
    • 22.08.2018
    • 1957views
    • 5comments
    0
  • Jeff Jeffy
    Level 15
    Irvine
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Resolved
    Weird System.out.println(); bug?Won't display user input.
    • 27.01.2019
    • 1740views
    • 13comments
    0
  • Djole
    Level 41
    Belgrade
    Question about the task Extending AmigoOutputStream
    Java Core, Level 8, Lesson 8
    Resolved
    ???import java.io.*; import java.util.*; /* Extending AmigoOutputStream */ public class QuestionFileOutputStream implements AmigoOutputStream { private AmigoOutputStream or; public QuestionFileOutputStream (AmigoOutputStream aos){ this.or = aos; } public void flush() thr
    • 07.03.2019
    • 1620views
    • 2comments
    0
  • Hussain
    Level 4
    Frankfurt am Main
    Question about the task Family relations
    Java Syntax, Level 2, Lesson 2
    Resolved
    Important questionWhy it should be : woman.husband = man And not : man = woman.husband . . . need good explanation
    • 12.02.2019
    • 1579views
    • 4comments
    2
  • Niranjan Soni
    Level 15
    Bangalore
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Under discussion
    1st and last 2 conditions are not satisfying. Help pleaseI'm getting correct output but 1st and last 2 conditions are not satisfying.
    • 29.09.2018
    • 1266views
    • 2comments
    0
  • Harinath Reddy A
    Level 7
    Delhi
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Under discussion
    whats the errorpublic class Solution { public static void main(String[] args) throws Exception { //write your code here boolean t = true; while(t=true){ BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); String s = r.readLine();
    • 05.03.2019
    • 1122views
    • 4comments
    0
  • Santosh Kumar
    Level 19
    Gagret
    Question about the task Currencies
    Java Core, Level 4, Lesson 8
    Resolved
    Everything is looking good but throwing error during verificationEverything is looking good but throwing error during verification
    • 03.03.2019
    • 1676views
    • 10comments
    0
  • Nitin
    Level 5
    Question about the task Positive number
    Java Syntax, Level 4, Lesson 7
    Under discussion
    Need Help!
    • 08.03.2019
    • 1267views
    • 2comments
    0
  • Nitin
    Level 5
    Question about the task Maximum of four numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Whats wrong in my code?
    • 05.03.2019
    • 1814views
    • 4comments
    0
  • Andrew
    Level 29
    Seattle
    Question about the task Introducing tags
    Java Core, Level 9, Lesson 11
    Resolved
    I can get the example output. Not sure what I'm missing.Do we need to solve for nested tags within nested tags? Please let me know if you thought of a simpler way to go about the solution.
    • 05.03.2019
    • 2236views
    • 3comments
    0
  • PATEL HET
    Level 7
    Ahmedabad
    Question about the task Create a Rectangle class
    Java Syntax, Level 5, Lesson 9
    Under discussion
    please help me, i am not getting from a long timei am not getting please can anyone send me the code and also check my code where is mistake. package com.codegym.task.task05.task0520; /* Create a Rectangle class */ public class Rectangle { //write your code here int top,left,width,height; public void initialize(int top,int left,i
    • 15.02.2019
    • 1751views
    • 4comments
    0
  • William Leininger
    Level 5
    Vancouver, WA
    Question about the task Drawing lines
    Java Syntax, Level 4, Lesson 13
    Under discussion
    Not understandingI don't understand how people are solving this problem (and some others) with nested for loops/multiple for loops. It'd make sense if say the variables carried through them or if I didn't have to define a variable in EACH for loop :S. I really dislike having to create a variable in every for loop. A
    • 15.02.2019
    • 1408views
    • 3comments
    0
  • AK
    Level 6
    Mumbai
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Under discussion
    Why is the code below not passing verification? package com.codegym.task.task03.task0318; /* Plan to conquer the world */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here InputStream inputStream = System.in; InputStreamReader input
    • 02.03.2019
    • 1334views
    • 3comments
    0
  • Yusra Ansari
    Level 9
    Karachi
    Question about the task Shuffled just in time
    Java Syntax, Level 7, Lesson 12
    Under discussion
    Can somebody give a sample input and sample output of this task?Can somebody give a sample input and sample output of this task?
    • 27.09.2018
    • 1721views
    • 5comments
    1
  • bri
    Level 7
    Sevilla
    Question about the task Creating cats
    Java Syntax, Level 5, Lesson 9
    Resolved
    Meaning of initialize?OK my understanding of the phrase: The class must have a constructor that takes a weight and color as arguments, and initializes all variables except the name and address. Meant to create something like: Cat(int weight, String color) this.color = color; this.weight = weight; age = 5; .. etc. EXCLUD
    • 04.02.2019
    • 1449views
    • 6comments
    1
  • Mark Fernandez
    Level 17
    Mumbai
    Question about the task Duplicating words
    Java Syntax, Level 7, Lesson 9
    Resolved
    unable to understand how to print PLS HELPpublic class Solution { public static void main(String[] args) throws Exception { // Read strings from the console and declare an ArrayList here ArrayList list =new ArrayList(); BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); for(int i=0;i
    • 03.03.2019
    • 1254views
    • 2comments
    0
  • AJITA SINGH
    Level 2
    Vishakhapatnam
    Question about the task Choose healthy food! Choose fruit!
    Java Syntax, Level 1, Lesson 8
    Archived
    What is wrong in my codeSystem.out.println(String apple); System.out.println(String peach); This is what was set to me com/codegym/task/task01/task0135/Solution.java:15: error: ')' expected System.out.println(String apple); ^ com/codegym/task/task01/task0135/Solution.java:15: error: i
    • 03.03.2019
    • 1587views
    • 5comments
    0
  • Love Patel
    Level 1
    San Leandro
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    Whats wrong with this code? This code works when I dont use the word else in the line 17. but it doesnt work when I type the word else in line 17 package com.codegym.task.task02.task0216; /* Minimum of three numbers */ public class Solution { public static int min(int a, int b, int c) { //write your code here
    • 26.11.2018
    • 1498views
    • 8comments
    0
  • SAYAN SAMANTA
    Level 10
    Bangalore
    Question about the task A programmer creates a person
    Java Syntax, Level 5, Lesson 7
    Under discussion
    how to put a reference to a object? package com.codegym.task.task05.task0514; /* A programmer creates a person */ public class Solution { public static void main(String[] args) { Person person1 = new Person(); Person person = person1; person1.initialize("Manika", 8); } static class P
    • 19.08.2018
    • 2018views
    • 7comments
    0
  • SWAPNIL SHUKLA
    Level 7
    Baddi
    Question about the task Console-based piggy bank
    Java Syntax, Level 5, Lesson 12
    Under discussion
    Stuck pls helpCan't find the error
    • 04.03.2019
    • 1210views
    • 1comment
    0
  • Jorge Sebastián Orellana
    Level 5
    Quito
    Question about the task Display right away
    Java Syntax, Level 3, Lesson 3
    Under discussion
    How to run the program in intellij.I installed the plugin and everything works fine in intellij. But how can I just locally run the program to see screen outputs, etc, without sending the submission?
    • 03.03.2019
    • 1773views
    • 2comments
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task Ascending numbers
    Java Syntax, Level 6, Lesson 11
    Resolved
    what is wrong here?need help
    • 08.01.2019
    • 1723views
    • 8comments
    0
  • ARYAN
    Level 4
    Pune
    Question about the task Contract
    Java Syntax, Level 1, Lesson 6
    Resolved
    not getting the last condition?i have written it correctly but its showing
    • 11.12.2018
    • 1560views
    • 3comments
    0
  • Patson T Lawrence
    Level 8
    Kampala
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Under discussion
    would this code survive in all scenarios?what am i missing in this code...verification failing!!
    • 01.03.2019
    • 1435views
    • 3comments
    0
  • Dmitriy Konoplev
    Level 11
    Khabarovsk
    Question about the task Task about algorithms
    Java Syntax, Level 9, Lesson 11
    Under discussion
    Everything is working fine but there is an error somewhere.what's the problem?
    • 01.03.2019
    • 1740views
    • 1comment
    0
  • Akintilebo Olamilekan
    Level 8
    Osun State
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    help public class Solution { private static List<String> strings; public static void main(String[] args) throws Exception { //write your code here strings = new ArrayList<String>(); int max = 0; Scanner sc = new Scanner(System.in); for (int y
    • 10.02.2019
    • 1959views
    • 3comments
    0
  • Dilip Sahu
    Level 2
    Mumbai
    Question about the task We don't need any extra lines
    Java Syntax, Level 1, Lesson 7
    Under discussion
    help pleaseYou need to comment out the unused variables.
    • 30.01.2019
    • 1240views
    • 4comments
    0
  • ROBERT KOSS
    Level 3
    Panama City
    Question about the task Don't feel like it? Do it anyway.
    Java Syntax, Level 1, Lesson 8
    Under discussion
    i really do not get what im doing wrong System.out.println("If you feel like it, do the task. If you don't feel like it, do it anyway."); System.out.println("If you feel like it, do the task. If you don't feel like it, do it anyway."); System.out.println("If you feel like it, do the task. If you don't feel like it, do it
    • 28.02.2019
    • 1177views
    • 1comment
    0
  • Tamanajahoshy
    Level 1
    Question about the task Display the square of a number
    Java Syntax, Level 1, Lesson 3
    Resolved
    constantly knocks an error ((Tell me, please, what mistake I made, already googled, I can not understand. All is correct, except "The displayed text must be the square of the variable number.
    • 27.07.2018
    • 1894views
    • 19comments
    0
  • sowjanya sripada
    Level 2
    Hyderabad
    Question about the task Display the square of a number
    Java Syntax, Level 1, Lesson 3
    Resolved
    whats wrong in my code.
    • 18.09.2018
    • 1503views
    • 6comments
    0
  • 1
  • ...
  • 339
  • 340
  • 341
  • 342
  • 343
  • ...
  • 371
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