Promotion
CodeGym University
Learning
Course
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
Anonymous #11384347
Level 31
Under discussion
IntelliJ editor crashes when I try to open a new task
Hi, Can someone help please. I have up until now used the online editor but now the tasks are moving to IntelliJ code editor. Each time I try and launch a task the ItelliJ editor crashes. I am therefore a little lost as to what I can do to carry on with this course. I am using a MacBook Pro M1. W
31.08.2023
108
views
2
comments
0
delta
Level 4
Question about the task
Three numbers
Java Syntax
,
Level 3
,
Lesson 2
Under discussion
the output for the solution I wrote should be 6 6 but not 66
the output for the solution I wrote should be 6 6 but not 66
08.09.2023
105
views
1
comment
0
Anonymous #11138917
Level 2
China
Question about the task
2048 (Part 18/18)
Games
,
Level 0
,
Lesson 2
Under discussion
I use ↑↓→, the reaction is different
I attempted to run the code, and when I used the "moveUp()" function, the outcomes didn't match my expectations. Consequently, I made some adjustments to my code in an attempt to address the issue correctly. However, even after applying the provided example to solve the problem, the results still
08.09.2023
93
views
1
comment
0
public enum WaysToDie
Level 23
Denver
Question about the task
Integer literals
Java Syntax
,
Level 9
,
Lesson 1
Under discussion
I made the minimum changes and still...
I made the minimum required changes to the fields by reducing each value by 1. Now all the numbers fit the type but it still doesn't pass. Original code package en.codegym.task.pro.task09.task0901; /* Integer literals */ public class Solution { public byte b = 128; public short s = 32768
18.12.2021
663
views
4
comments
0
Jyothi
Level 20
Question about the task
Greater than 10? You're not a good fit for us
Java Syntax
,
Level 8
,
Lesson 8
Resolved
task08.task0814 - Greater than 10? You're not a good fit for us
task08.task0814 - Greater than 10? You're not a good fit for us When I run it has removed elements > 10. But not according to codegym vaerify?
11.12.2018
1825
views
5
comments
1
Prashant Vishwakarma
Level 12
Mumbai
Question about the task
20 words that start with the letter "L"
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
why not working?
it seems me fine
23.09.2020
361
views
2
comments
1
Harshit Garg
Level 23
Chandigarh
Under discussion
What is a class inside a class?
how is that possible?
20.08.2023
100
views
1
comment
0
Attila Ágoston
Level 5
Under discussion
It's working ;)
int a; for(a = 0; a < array.length; a++) { if(array[a]%2 == 0) { array[a]*=-1; } System.out.println(array[a]); } } }
05.09.2023
90
views
0
comments
0
FelixUjo
Level 35
Gijón
Question about the task
Writing to a file from the console
Java Core
,
Level 3
,
Lesson 11
Resolved
It doesn't seem to print exit. I don't know why
It doesn't seem to print exit. I don't know why
03.09.2023
118
views
2
comments
0
Shraddha Lambat
Level 20
Mumbai
Question about the task
Binary converter
Java Syntax
,
Level 11
,
Lesson 1
Resolved
what's wrong with this, plz help
public static int toDecimal(String binaryNumber) { //write your code here if(binaryNumber==null || binaryNumber.isEmpty()) { return 0; } int decNo=0; int temp=0; for(int i=0;i
02.09.2023
131
views
1
comment
0
Shraddha Lambat
Level 20
Mumbai
Question about the task
Binary converter
Java Syntax
,
Level 11
,
Lesson 1
Resolved
Wht its fail
public static int toDecimal(String binaryNumber) { //write your code here if(binaryNumber==null || binaryNumber.isEmpty()) { return 0; } int decNo=0; int temp=Integer.valueOf(binaryNumber); for(int i=0;i
01.09.2023
114
views
1
comment
0
Lajos
Level 23
Gyula
Question about the task
Creating a proxy object
Java Collections
,
Level 2
,
Lesson 8
Resolved
It's working, but I don't know what's wrong.
Hello! Any idea what's the problem? It's working, but I don't know what's wrong. thx
21.04.2020
1058
views
5
comments
1
Harshit Garg
Level 23
Chandigarh
Question about the task
Correct order
Java Syntax
,
Level 7
,
Lesson 2
Resolved
isnt it correct..
pls tell any mistake
08.08.2023
229
views
2
comments
0
K J LAKSHMI PRASAD
Level 4
kalasalingam University
Question about the task
Three numbers
Java Syntax
,
Level 3
,
Lesson 5
Under discussion
three numbers
import java.util.Scanner; /* Three numbers */ public class Solution { public static void main(String[] args) { //write your code here Scanner sc=new Scanner(System.in); int a=sc.nextInt(); int b= sc.nextInt(); int c= sc.nextInt(); if(a==b && a==c ) { System.out.print
03.09.2023
129
views
1
comment
0
FelixUjo
Level 35
Gijón
Question about the task
Catching custom exceptions
Java Syntax
,
Level 15
,
Lesson 8
Resolved
I don't understand this task
I don't understand this task
13.08.2023
111
views
3
comments
0
Andrei
Level 41
Question about the task
Reading from a stream
Java Collections
,
Level 2
,
Lesson 4
Under discussion
Is there something wrong with my algorithm? Because on paper is should pass the last requirement.
What do you think?
21.06.2021
606
views
3
comments
0
Wei Cui
Level 39
Newark
Question about the task
Using RandomAccessFile
Java Collections
,
Level 2
,
Lesson 2
Under discussion
where is wrong
when meeting the text content, its true, but can't pass, idk where is wrong public class Solution { public static void main(String... args) throws IOException { String path = args[0]; int position = Integer.parseInt(args[1]); String text = args[2]; RandomAccessF
18.03.2020
1099
views
4
comments
0
Anonymous #11149819
Level 36
Question about the task
Password generator
Java Collections
,
Level 2
,
Lesson 6
Under discussion
What is wrong?
1. I made List readyPasswords class variable and got this. 2. readyPasswords was methods variable before. But I had this when validated My code seems to work well, but it doesn't pass validation
25.08.2023
102
views
1
comment
0
Anonymous #11387724
Level 1
Richardson
Under discussion
What input was given to the following code snippet to output 8?
Scanner s = new Scanner(System.in); int times; times = s.nextInt(); //brings in an int from commandline times = times < 0 ? -times : times; int notes = times++; if
27.08.2023
120
views
1
comment
0
matemate123
Level 50
Kraków
Question about the task
Build a tree (part 4)
Java Collections
,
Level 1
,
Lesson 15
Resolved
I need a hint
Ok my code looks like that. I don't know exactly what Validator want from me. I don't know whether I can use linkedLists / arrayLists ? // line 13 For start I implemented add() size() and getParrent() method and I get 3 red from validator, then I implemented remove() because I thought maybe I must d
24.08.2023
246
views
9
comments
0
Harshit Garg
Level 23
Chandigarh
Resolved
Why doesnt this work? pls see
package Application; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class Application1 extends JFrame implements ActionListener { JButton b1; Application1(){ setSize(700,600); setLayout(new FlowLayou
26.08.2023
196
views
5
comments
0
prasanth
Level 8
Fort Collins
Question about the task
Create a Dog class
Java Syntax
,
Level 5
,
Lesson 7
Under discussion
Need help with this
package com.codegym.task.task05.task0511; /* Create a Dog class */ public class Dog { String name = "Puppy"; int height = 6; String color = "green"; public void Initialize(String name) { this.name = name; } public void Initialize(String name,int height) { this.name = name;
08.01.2019
1832
views
6
comments
0
Harshit Garg
Level 23
Chandigarh
Resolved
bitwise
shouldn't 0b11110001>>4 = 0b11111111 OR 0bf1>>4 = 0bff? calculator shows: 0b0f or 0b00001111
21.08.2023
101
views
3
comments
0
Daniel Njuguna
Level 14
Kiambu
Question about the task
Whales, the descendants of cows
Java Core
,
Level 2
,
Lesson 2
Under discussion
What's wrong here?
package com.codegym.task.task12.task1202; /* Whales, the descendants of cows */ public class Solution { public static void main(String[] args) { Cow cow = new Whale(); System.out.println(cow.getName()); } public static class Cow { public String getName() {
06.02.2019
1313
views
4
comments
1
Lex Icon
Level 17
Sofia
Question about the task
The isomorphs are coming
Java Core
,
Level 2
,
Lesson 12
Resolved
I need a help.
In fact, this code has the following output: The minimum is -8 The index of the minimum element is 5 Wherein have I done a mistake? TY
20.01.2021
396
views
2
comments
1
matemate123
Level 50
Kraków
Question about the task
Adding a file to an archive
Java Collections
,
Level 1
,
Lesson 6
Resolved
My program did everythink but still all red!...
My program copy zipFile to temp directory. // 33 If "new" folder is in upmost tree, checking whether that folder have file with the same name like fileToCopy, and change the file. // 73 (maybe I don't understand task correctly but I see in exaple of result that tree looks like: upmostTree/new/file
21.08.2023
114
views
2
comments
2
Anonymous #10887977
Level 14
Chicago
Question about the task
Good or bad?
Java Syntax
,
Level 3
,
Lesson 7
Under discussion
It appears I match all the criteria, can anybody spare a hint?
I've met all the criteria. If a < 5, displays less than 5. Else displays number is greater than 5. Instructions say nothing about whether or not number is actually 5, as is the case with the third call of the compare method. I can fix this with an "else if" but I'm not specifically asked to.
06.12.2021
741
views
5
comments
0
FelixUjo
Level 35
Gijón
Question about the task
Task about algorithms
Java Syntax
,
Level 16
,
Lesson 4
Under discussion
I don't know what else to do
I don't know what else to do
20.08.2023
101
views
1
comment
0
Garagastone21
Level 1
Under discussion
void cocktailSort(int a[]) { boolean swapped = true; int start = 0; int end = a.length; while (swapped == true) { swapped = false; for (int i = start; i < end - 1; ++i) { if (a[i] > a[i + 1]) { int temp = a[i]; a[i]
void cocktailSort(int a[]) { boolean swapped = true; int start = 0; int end = a.length; while (swapped == true) { swapped = false; for (int i = start; i < end - 1; ++i) { if (a[i] > a[i + 1]) { int temp = a[i]; a[i]
20.08.2023
88
views
0
comments
0
Harshit Garg
Level 23
Chandigarh
Question about the task
Path update
Java Syntax
,
Level 10
,
Lesson 5
Resolved
Where is the error?
pls reply
16.08.2023
144
views
2
comments
0
Show more
1
...
12
13
14
15
16
...
367
Please enable JavaScript to continue using this application.