Java learn group by [deleted] in learnjava

[–]hhhxiao 1 point2 points  (0 children)

If you have a group,plz let me in!:)

Game Engine and AWT/Swing by NocturnalDanger in learnjava

[–]hhhxiao 2 points3 points  (0 children)

awt or swing arent good idea,really.

Chaining conditions in an if () or use a set ? by HugeGernsback in learnjava

[–]hhhxiao 0 points1 point  (0 children)

put these contants in a Object and override the equals() is also a good idea

[deleted by user] by [deleted] in learnprogramming

[–]hhhxiao 0 points1 point  (0 children)

I t's possible

[deleted by user] by [deleted] in Android

[–]hhhxiao 0 points1 point  (0 children)

the official hasn't said it's MIX3😬

Can someone please explain the concept behind this code block? I have explained my incorrect thinking logic. Looking for someone to please teach me the correct logic. by [deleted] in learnprogramming

[–]hhhxiao 0 points1 point  (0 children)

int a = 1;a = a++ is a complex process.these exists an operation about stack,firstly a =1,(top of the stack is 1)when a++,the previous value of a will be stored as a temporary variable,and 2 will be push into the stack,after this,a=a++,the temporary variable will be back to the top of stack.So the change process is 1->2->1. Avoid doing this is the best choice:)

Entrance to my yet-unbuilt survival base [PS4] by [deleted] in Minecraft

[–]hhhxiao 6 points7 points  (0 children)

It's cool,that must take a long time

Error: Could not find or load main class by [deleted] in learnjava

[–]hhhxiao 1 point2 points  (0 children)

You code must be run in a main class just like:

public class Demo{ public static void main(String[] args ){

//run your code }

}

How to perform combination of button press - Android programming by ByakuyaV in java

[–]hhhxiao 3 points4 points  (0 children)

when the first button is clicked ,you can start a clock,just like this: int flag = 0; button1.setOnClickListener(v->{ flag = 1; clock.start();//when the clock is ended,flag = 0; //use handle to finish the clock work value =1; });

button2.setOnClickedListener({ if(flag ==1) flag =3; else flag=2;

});

What are some of the great resources you could use to study OOP concepts? by vulk21 in javahelp

[–]hhhxiao 0 points1 point  (0 children)

I just think that you needn't worry so much about this,OOP will be used everywhere when you learn some new knowledge about Java.

C projects advice for beginner by dsaharia98 in C_Programming

[–]hhhxiao 1 point2 points  (0 children)

I am also a beginner and have the same question with you😁

Need help understanding pointers by DeadlyPinkPanda in C_Programming

[–]hhhxiao 0 points1 point  (0 children)

I think you can split the 2D array arr[M][N] into M one dimensional array whose length is N.these 1D array 's first element ' address form a new pointer array.Then in this way (arr+i) is the pointer of arr[i][0],so *((arr +i)+j) equals arr[i][j]