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
Ask a question
All quests
All levels
Any status
Questions about tasks
Hot
Patrick freeman
Level 14
Buffalo
Question about the task
String array in reverse order
Java Syntax
,
Level 7
,
Lesson 4
Resolved
Failing requirement to "display 10 strings, each on a new line"
Hello, I keep failing the condition "The program should display 10 strings, each on a new line.". In IntelliJ, it does display 10 strings, and this is the final output if my inputs are string1,string2, etc.: Peter Bishop Walter Bishop string8 string7 string6 string5 string4 string3 string2 string1
18.10.2019
1219
views
2
comments
0
Revathy S
Level 4
trivandrum
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
pls help
import java.io.*; import java.util.*;
18.10.2019
1109
views
2
comments
0
Anonymous #10011987
Level 16
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
Unable to get correct answer for Longest Sequence program using ArrayList
I am not able to get a correct solution for my current code. I am using the easiest possible solution for the given problem, using an ArrayList. Thanks in advance. Error: It is telling me to check if my code works for numbers > 127, or not. But I have already set the data type as Integer. It's r
17.10.2019
1156
views
5
comments
0
Will Rosenberg
Level 9
Glendale
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
What is Wrong?
It meets the conditions. What is wrong?
26.11.2018
1612
views
4
comments
1
Dusernajder
Level 20
Budapest
Question about the task
Prices
Java Core
,
Level 8
,
Lesson 11
Under discussion
It works for me
I am not sure why are those requirements not validating.
13.10.2019
1200
views
1
comment
0
Carlos Cortázar
Level 17
Madrid
Under discussion
executing linux commands from java
I am trying to execute a linux command from my java class using the method exec() from the Runtime class in this way: ////////////////////////////// public static String xxUtilInfoFile (String sPath , String sFileName) throws Exception { Runtime r = null; Process p = nu
18.10.2019
813
views
1
comment
0
John
Level 27
Washington DC
Question about the task
Five winners
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Why is my code not correct? I tried this in eclipse and it outputs correctly.
Why is my code not correct? I tried this in eclipse and it outputs correctly.
03.10.2019
1316
views
2
comments
0
vladimir.plamadeala@endava.com
Level 10
Chisinau
Question about the task
Census
Java Syntax
,
Level 8
,
Lesson 8
Resolved
Why is two last conditions do not verify? In IntelliJ seems to work fine.
package com.codegym.task.task08.task0815; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; /* Census */ public class Solution { public static HashMap createMap() { HashMap map = new HashMap<>(); map.put("Moldova", "Ian"); map
17.10.2019
1403
views
3
comments
0
Han
Level 24
Question about the task
Adding a file to an archive
Java Collections
,
Level 1
,
Lesson 6
Resolved
The task doesn't compile on server (but it does on my machine)
So when I try to submit this code I get the following error: Error in com/codegym/task/task31/task3105/Solution.java on line 34 cannot find symbol symbol: method readAllBytes() location: variable zipIs of type java.util.zip.ZipInputStream Anyone an idea what I'm doing wrong?
17.10.2019
2683
views
4
comments
0
tony
Level 20
Nis
Question about the task
Faster together? We'll see :)
Java Core
,
Level 7
,
Lesson 2
Resolved
need help
Any idea of how to solve the third requirement?
05.03.2019
1323
views
3
comments
0
Anthony Chalk
Level 30
London
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
I can't find the problem
I'm really not sure what's wrong with the code.
17.10.2019
1016
views
2
comments
0
hidden #10462592
Level 8
Question about the task
Notepad for new ideas
Java Syntax
,
Level 6
,
Lesson 11
Resolved
Although it worked, I am not sure what happened here! please explain!
public class Solution { public static class Idea { public String getDescription() { return "s"; } } public static void printIdea(Idea idea) { System.out.println(idea.getDescription()); } public static void main(String[] ar
15.10.2019
1515
views
2
comments
0
Kavita Rao
Level 13
Rockville
Question about the task
Jen or Jen?
Java Syntax
,
Level 4
,
Lesson 6
Resolved
Fails Requirement 3
Not sure why the task fails requirement 3 even though it is doing exactly what the requirement states.
19.09.2019
1309
views
3
comments
0
Kavita Rao
Level 13
Rockville
Question about the task
To the top of the list
Java Syntax
,
Level 7
,
Lesson 6
Resolved
What is wrong in my code?
My code should pass all the requirements. I read input and put it in the end of the list. It displays in the input in reverse order. However, it is not passing the requirement. Please let me know what the issue is. Thanks
30.09.2019
1242
views
3
comments
0
Cristian
Level 16
Bucharest
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 4
Archived
If the entered number is zero, display zero. WHY?
import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(reader.readLine()); if(n == 0) { System.out.println(
07.05.2019
1575
views
3
comments
0
theCalculator
Level 3
Warren
Under discussion
Can anyone help me with this? I cannot get the problems to print horizontally on the print line.
Write and submit the source code for the following program. The program will use an integer array of size 10 to store the prices of smartphones. It will then determine and print the prices of the most expensive and cheapest phones. Use the following variables: int[] prices = new int[10]; // Array of
17.09.2019
1046
views
2
comments
0
Cyrus
Level 3
Under discussion
How to add alphabetical/numerical restrictions to scanner
Hi, I need to remove the most occuring char in a string and then print out the modified version of this string. Can you please tell (give me a hint) me how can I add appropriate alphabetical/numerical restrictions to scanner. By the way here is the code: https://pastebin.com/WQpMbJ6q
07.10.2019
845
views
1
comment
0
Noura
Level 0
Riyadh
Under discussion
please help i have quiz
1. Write Student class such as: Student(id:int, n:string, dep:string, level:int) is the class constructor aiming at instantiate the class Student with the specified arguments ToString()printthestudentinformation. 2. Write Section class such as: Each section can contain 25 students. Section(id: s
07.10.2019
802
views
1
comment
0
Timothy Strong
Level 4
San Diego
Question about the task
Crazy eights
Java Syntax
,
Level 2
,
Lesson 5
Under discussion
Researched the internet. Need to work object as such. CatHcart = new Cat(). Put the keyword My in there and it worked.
Put the keyword MY in there and it works. It did for me. CatMycat = newCat();
12.10.2019
1060
views
1
comment
0
Karan Mahajan
Level 0
Under discussion
can anyone provide me the code for any of the part
Programming Fundamentals Assignment 2 2019 Semester 2 1 Programming Fundamentals 2019 Semester 2 Assignment Choices We the PF teaching team have allowed for assignment choices considering the diversity of students in PF. Therefore you are required to select either Assignment 2A or Assignment 2B cons
17.10.2019
1892
views
3
comments
0
Santosh Kumar
Level 19
Gagret
Question about the task
Prices
Java Core
,
Level 8
,
Lesson 11
Under discussion
Task verification throwing error
Task verification throwing error
10.08.2019
1138
views
1
comment
0
Yasin
Level 0
İstanbul
Under discussion
Is there a JavaScript course here?
Is there a JavaScript course here?
14.10.2019
1673
views
1
comment
0
Geoffrey O
Level 4
Totton
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
This outputs Valid varibles but errors on the last test?
Why is this ? whats wrong with it? Thanks
17.10.2019
750
views
1
comment
0
Qeviv
Level 6
Katowice
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Short question about this task >.>
Any feedback what's wrong with it? >.>
15.10.2019
1010
views
4
comments
0
Ivaylo Trifonov
Level 25
Madrid
Question about the task
Symbol frequency
Java Core
,
Level 8
,
Lesson 11
Resolved
I get "The program ran too long and was closed!"
Testing the code on my computer with different inputs I always get correct output, but when I submit it I get this error. Someone can see my error?
14.09.2019
1250
views
2
comments
1
Mikayla Pace
Level 27
Salt Lake City
Question about the task
Yet another adapter
Java Core
,
Level 9
,
Lesson 3
Under discussion
Last Condition Not Validating
I've tried a bunch of different things but can't get my read method to work correctly, not sure why.
17.10.2019
1323
views
3
comments
0
Ash Ka
Level 13
Calgary
Question about the task
Functionality is not enough!
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
What's Wrong ?
Output : Id=1 Name=String1 null Id=2 Name= I was getting 'InputMismatchException', and I handled it
16.10.2019
1272
views
2
comments
0
Andrei Dima
Level 0
Under discussion
SUGE PULA DE FRAIERI CU RECLAMELE VOASTRE DE CACAT CARE SUG PULA SUGE PULA DE FRAIERI CU RECLAMELE VOASTRE DE CACAT CARE SUG PULA SUGE PULA DE FRAIERI CU RECLAMELE VOASTRE DE CACAT CARE SUG PULA
SUGE PULA DE FRAIERI CU RECLAMELE VOASTRE DE CACAT CARE SUG PULA SUGE PULA DE FRAIERI CU RECLAMELE VOASTRE DE CACAT CARE SUG PULA SUGE PULA DE FRAIERI CU RECLAMELE VOASTRE DE CACAT CARE SUG PULA SUGE PULA DE FRAIERI CU RECLAMELE VOASTRE DE CACAT CARE SUG PULA SUGE PULA DE FRAIERI CU RECLAMELE VO
06.09.2019
1060
views
1
comment
0
Soham
Level 5
Kitchener
Question about the task
Come on, lucky seven!
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
What's wrong with my code please help.
Please help.
14.10.2019
1042
views
5
comments
0
Richard Han
Level 4
Lipa
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Why are the conditions not matching ;-;
No, but seriously. I need help xD
12.09.2018
2202
views
8
comments
0
Show more
1
...
267
268
269
270
271
...
371
Please enable JavaScript to continue using this application.