• CodeGym
  • Course
  • Tasks
  • Games
  • Sale
  • Help
  • Subscriptions
  • Success stories
  • Chat
  • Forum
  • Groups
  • Friends
  • Activity

Help with tasks

  • Reviews
  • About us
  • StartStart learning
CodeGym
  • All questions
 
  • ProgrammerNewbie
    Level 14
    Question about the Longest string task
    Java Syntax, Level 7, Lesson 6
    Archived

    How to meet last condition

    Hi, I meet all conditions except the last one since I am not sure how to do it. I tried to do something like this after the if - statement but it did not work as I hoped. Therefore I deleted it from the code below. So, still I am stuck with how to meet the last condition. else if (strings.get(i).
    • 7 June 2019
    • 466views
    • 8comments
    0
  • Nitin raj
    Level 12
    Mumbai
    Question about the Somehow average task
    Java Syntax, Level 4, Lesson 16
    Under discussion

    Help me out guysss

    Help me out guysss
    • 14 June 2019
    • 171views
    • 1comment
    0
  • Daniel Buyinza
    Level 13
    Kampala
    Question about the Longest sequence task
    Java Syntax, Level 8, Lesson 6
    Under discussion

    Failed to pass the last requirement

    My code may not be the best. But as best as I can test, it's correctly calculating the longest sequence. So I don't know why it's failing to pass the last requirement. I would gladly appreciate any assistance as to why it's not working out.
    • 12 June 2019
    • 195views
    • 1comment
    0
  • Iasu
    Level 17
    Question about the Number of letters task
    Java Syntax, Level 10, Lesson 11
    Under discussion

    Why am I getting "null" and not the integer "0"....

    I´m getting "null" and not the number "0"... I have tried so many times now, and it has to do with if statement "map.put(x, 1)" input: Lily Charlie Mia Jacob Sophia Alfie Isabella Freddie Grace Oscar output: a 9 b 2 c 4 d 2 e 6 f 2 g 1 h 2 i 7 j 1 k null l 6 m 1 n null o 3 p 1 q null r 4 s 3 t n
    • 18 May 2019
    • 237views
    • 7comments
    0
  • Rafia Rahman Chowdhury
    Level 3
    Chittagong
    Question about the One cat isn't enough task
    Java Syntax, Level 2, Lesson 3
    Under discussion

    Can anybody define "instance" as stated in "Store each instance in its own variable." in simple words ?

    package com.codegym.task.task02.task0208; /* One cat isn't enough */ public class Solution { public static void main(String[] args) { //write your code here Cat bella = new Cat(); Cat bimbim = new Cat(); } public static class Cat { } }
    • 13 June 2019
    • 202views
    • 2comments
    0
  • James Archbold
    Level 5
    Cartagena
    Question about the Come on, lucky seven! task
    Java Syntax, Level 4, Lesson 4
    Resolved

    Why can't I use the method System.out.format()?

    I understand that we have only seen the println() and print() methods, but why can't we use the format() method? It is easier to format strings, and the output would be the same as using println(" " + " ").
    • 29 March 2019
    • 483views
    • 5comments
    1
  • Anonymous
    Level 18
    Question about the No comments needed task
    Java Syntax, Level 0, Lesson 8
    Resolved

    Help to make me solve !

    I cant seem to solve this code. No matter how much I try! Please do help me. If I am trying to make X=12 then I couldn't make Y=2 & If I am trying to make y=2 then I couldn't make x=12 . This is the only code, where I am stuck so far. I have even completed the other tasks after this one. pleas
    • 19 September 2018
    • 542views
    • 2comments
    1
  • John Michael Montuya
    Level 10
    Cebu City
    Question about the Longest sequence task
    Java Syntax, Level 8, Lesson 6
    Resolved

    Need tips for the correct algorithm :(

    Ok, so it looks like my brain's processing power can only amount to this much. My code runs but it can only accurately calculate the first instance or occurrence of numbers in sequence e.g 1234556789 but will go very wrong when another set of number sequence show up on the list. I know I'm missing a
    • 13 June 2019
    • 266views
    • 1comment
    0
  • smile
    Level 7
    Tainan
    Question about the Day of the week task
    Java Syntax, Level 4, Lesson 4
    Resolved

    incompatible types: int cannot be converted to boolean.

    What's the difference between "=" and "=="?
    • 8 June 2019
    • 792views
    • 3comments
    0
  • Павел Артеменко
    Level 41
    Krasnodar
    Question about the Words with numbers task
    Java Core, Level 9, Lesson 11
    Resolved

    Suggestions how to pass?

    Tested ok with sequences: 1n n1 1n1 n1n But somehow requirements does not met (
    • 27 April 2019
    • 259views
    • 2comments
    0
  • ddi
    Level 18
    Dortmund
    Question about the Rule of the triangle task
    Java Syntax, Level 4, Lesson 4
    Resolved

    What am i missing?

    What am i missing?
    • 5 June 2019
    • 316views
    • 7comments
    0
  • Shk1pper
    Level 4
    Sankt-Peterburg
    Question about the Day of the week task
    Java Syntax, Level 4, Lesson 4
    Under discussion

    WHY NOT?

    Than I running this work....
    • 12 June 2019
    • 223views
    • 2comments
    0
  • Serg
    Level 23
    Tyumen
    Question about the Time for 10,000 get calls task
    Java Syntax, Level 8, Lesson 6
    Resolved

    I get calculations, but I get a validation error

    I get calculations, but I get a validation error package com.codegym.task.task08.task0809; import java.util.ArrayList; import java.util.Date; import java.util.LinkedList; import java.util.List; public class Solution { public static void main(String[] args) { System.out.println(getIns
    • 13 June 2019
    • 280views
    • 2comments
    0
  • SATHISHKUMAR PALANISAMY
    Level 4
    Coimbatore
    Question about the Crazy eights task
    Java Syntax, Level 2, Lesson 5
    Under discussion

    You have declared too few variables

    I am getting You have declared too few variables error. Please help?
    • 10 June 2019
    • 201views
    • 3comments
    0
  • Cinthya Cabanzo
    Level 22
    Bogota
    Question about the GCD task
    Java Core, Level 4, Lesson 8
    Under discussion

    Runs perfect but dont acomplish the verification

    Runs perfect but dont acomplish the verification
    • 12 June 2019
    • 198views
    • 1comment
    0
  • shovan
    Level 16
    Kolkata
    Question about the Parameterized interface task
    Java Core, Level 3, Lesson 2
    Resolved

    please help

    how to use string parameter in the interface implementation???
    • 11 June 2019
    • 464views
    • 2comments
    0
  • Merle Cato
    Level 4
    New York City
    Question about the Positive and negative numbers task
    Java Syntax, Level 4, Lesson 4
    Archived

    i need help with my code, do not know what is wrong with it.

    package com.codegym.task.task04.task0412; /* Positive and negative numbers */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader(new InputStreamReader(Sy
    • 16 January 2019
    • 375views
    • 3comments
    0
  • Nehal Abubakar
    Level 7
    Karachi
    Question about the Minimum of four numbers task
    Java Syntax, Level 2, Lesson 8
    Resolved

    Help me out plzzz

    Help me out with the solution plzzz
    • 10 August 2018
    • 883views
    • 7comments
    0
  • gery
    Level 9
    Islamabad
    Question about the HashMap of cats task
    Java Syntax, Level 8, Lesson 3
    Resolved

    hashmap correction at line 17

    public static void main(String[] args) throws Exception { String[] cats = new String[]{"Tiger", "Missy", "Smokey", "Marmalade", "Oscar", "Snowball", "Boss", "Smudge", "Max", "Simba"}; HashMap map = addCatsToMap(cats); for (Map.Entry pair : map.entrySet()) { Sys
    • 27 September 2018
    • 1102views
    • 8comments
    0
  • Mark Harold Atabelo
    Level 3
    Tagbilaran
    Question about the Plan to conquer the world task
    Java Syntax, Level 3, Lesson 8
    Under discussion

    WTF is wrong with this program cant enter name.

    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 BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String
    • 22 August 2018
    • 424views
    • 5comments
    0
  • Deepak Chandra
    Level 16
    Visakhapatnam
    Question about the Greater than 10? You're not a good fit for us task
    Java Syntax, Level 8, Lesson 8
    Resolved

    What is wrong in my code , Help please.

    The output seems to be right in intellij all the numbers greater than 10 are being removed but the last condition isn't verifying, need help.
    • 22 May 2019
    • 582views
    • 7comments
    0
  • Razvii
    Level 8
    Timișoara
    Question about the Cat relations task
    Java Syntax, Level 6, Lesson 11
    Resolved

    OUTPUT its OK , what i wrong ???

    WHAT IS WRONG??
    • 12 June 2019
    • 365views
    • 1comment
    0
  • Abhishek
    Level 3
    Pune
    Question about the Sam I Am task
    Java Syntax, Level 3, Lesson 6
    Under discussion

    What Combination is left?

    package com.codegym.task.task03.task0313; /* Sam I Am */ public class Solution { public static void main(String[] args) { //write your code here String s="Say"; String t="I"; String u="Am"; System.out.println(s+t+u); System.out.printl
    • 8 October 2018
    • 647views
    • 4comments
    0
  • Ed Maphis
    Level 20
    Painesville
    Question about the Stopwatch task
    Java Core, Level 6, Lesson 7
    Resolved

    So why is this code failing?

    Uhhm. Ok. So why is this code failing?
    • 11 June 2019
    • 242views
    • 3comments
    0
  • Durmus Gulbahar
    Level 18
    Antalya
    Question about the Five winners task
    Java Syntax, Level 8, Lesson 11
    Resolved

    Everything is okay but display

    i can't understand what happened but i did part of sort , then i can't display why did it wrong ??
    • 12 June 2019
    • 377views
    • 4comments
    0
  • Berkson
    Level 17
    Fortaleza
    Question about the Predictions task
    Java Syntax, Level 3, Lesson 8
    Resolved

    Only gives the error: The displayed text does not correspond to the task conditions.

    Gives the error: The displayed text does not correspond to the task conditions. But if you try, the answer is correct! Can someone help me? package com.codegym.task.task03.task0319; /* Predictions */ import java.io.BufferedReader; import java.io.InputStreamReader; public class Solution { p
    • 2 May 2019
    • 356views
    • 6comments
    0
  • Serg
    Level 23
    Tyumen
    Question about the HashMap of Objects task
    Java Syntax, Level 8, Lesson 3
    Resolved

    What is the problem?

    Displays on the screen correctly. But does not pass the test What is the problem? package com.codegym.task.task08.task0806; import java.util.HashMap; import java.util.Map; /* HashMap of Objects */ public class Solution { public static void main(String[] args) throws Exception { H
    • 12 June 2019
    • 306views
    • 6comments
    0
  • Kaushik Ashutosh Raj
    Level 8
    Bangalore
    Question about the Plan to conquer the world task
    Java Syntax, Level 3, Lesson 8
    Under discussion

    There is no way to enter input through the keyboard

    ..
    • 22 August 2018
    • 622views
    • 7comments
    0
  • ddi
    Level 18
    Dortmund
    Question about the Playing Javarella task
    Java Syntax, Level 7, Lesson 9
    Resolved

    Help Needed :)

    I have tried a else{ four.add(a);} in line 38 but i am not achieving the goal.. What am i missing?
    • 12 June 2019
    • 190views
    • 1comment
    0
  • smile
    Level 7
    Tainan
    Question about the Drawing a rectangle task
    Java Syntax, Level 4, Lesson 13
    Resolved

    What's wrong with my code?

    I run my code, and it seems nothing wrong, but I still failed. It says, "Be sure that you have displayed the correct number of rows." Why?
    • 12 June 2019
    • 465views
    • 2comments
    0
  • 1
  • ...
  • 95
  • 96
  • 97
  • 98
  • 99
  • ...
  • 171
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Game Projects
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
About
  • About us
  • Contacts
  • Reviews
  • FAQ
  • Support
Video
  • Top 3 features of CodeGym
  • "Course" section
  • "Help" section
  • "Games" section
Follow us
Interface language
© 2019 CodeGym Programmers Are Made, Not Born
© 2019 CodeGym Programmers Are Made, Not Born