• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 10:06
CEST 16:06
KST 23:06
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Serral wins HomeStory Cup 2914Serral wins Maestros of the Game 243ByuL, and the Limitations of Standard Play3Team Liquid Map Contest #22: Results and Winners7Code S Season 2 (2026): RO4 and Finals Preview12
Community News
PIG STY FESTIVAL 8.0! (13 - 23 August)7Neeb returns to progaming; rejoins ONSYDE14Weekly Cups (July 20-26): Early returns on 5.0.16b8IntoTheTV X SOOP SC2 League : Weekly & Monthly5Clem: "I don't have that much hope in Blizzard"9
StarCraft 2
General
Balance hotfix patch 5.0.16b (July 16) Neeb returns to progaming; rejoins ONSYDE Clem: "I don't have that much hope in Blizzard" Weekly Cups (July 20-26): Early returns on 5.0.16b Terran or Protoss
Tourneys
PIG STY FESTIVAL 8.0! (13 - 23 August) IntoTheTV X SOOP SC2 League : Weekly & Monthly Crank Gathers Season 4: BW vs SC2 Team League RSL Revival: Season 6 - Qualifiers and Main Event Sparkling Tuna Cup - Weekly Open Tournament
Strategy
[G] Having the right mentality to improve
Custom Maps
Nexus Wars 2021 GUIDE [M] (2) Industrial Park
External Content
Mutation # 536 Railroad Switch The PondCast: SC2 News & Results Mutation # 535 Assembly of Vengeance Mutation # 534 Burning Evacuation
Brood War
General
BW Drama: Terror's Debt Incident + C9 disbanding BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion Making an Online Broodwar Manager Game ASL22 General Discussion
Tourneys
Escore Tournament - Season 3 [Megathread] Daily Proleagues 2v2v2v2 Tournament Small VOD Thread 2.0
Strategy
Fighting Spirit mining rates Odyssey Mineral Stack Saturation Simple Questions, Simple Answers PvT advise for noobs
Other Games
General Games
Nintendo Switch Thread Path of Exile ZeroSpace Early Access is Now Live! Stormgate/Frost Giant Megathread General RTS Discussion Thread
Dota 2
Looking for a Dota Mentor Official 'what is Dota anymore' discussion
League of Legends
[TL LoL EUW IHs] Teemo shall perish TSM pausing esports and CLG Dead
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread TL Mafia Power Rank NeO.D_StephenKing vs This Guy From 1 Million Dance
Community
General
Russo-Ukrainian War Thread Artificial Intelligence Thread US Politics Mega-thread Canadian Politics Mega-thread European Politico-economics QA Mega-thread
Fan Clubs
The IdrA Fan Club The HerO Fan Club!
Media & Entertainment
Movie Discussion! Anime Discussion Thread Series you have seen recently... [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread 2026-27 Football Thread placeholder TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion MLB/Baseball 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Simple Questions Simple Answers FPS when play League Of Legend on laptop
TL Community
Northern Ireland Global Starcraft The Automated Ban List
Blogs
What is a Gamer?
TrAiDoS
Hello guys!
LIN1s
ASL S22 English Commentary…
namkraft
Poker (part 2)
Nebuchad
An Exploration of th…
waywardstrategy
Customize Sidebar...

Website Feedback

Closed Threads



Active: 4929 users

The Big Programming Thread - Page 617

Forum Index > General Forum
Post a Reply
Prev 1 615 616 617 618 619 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
fancyClown
Profile Joined April 2015
65 Posts
April 19 2015 06:42 GMT
#12321
On April 19 2015 08:10 betaflame wrote:
Hi guys, I have a good amount of experience with LAMP stack, php, mvc frameworks, jquery, javascript and such and I am looking into learning "MEAN" and I have a couple questions:

From my own research, there seems to be 2 main "frameworks" for MEAN but by itself, you could technically work with just mongodb, expressjs, angular and node on its own together. So is there any point in really going with those advertised "MEAN" stacks? Like what do they offer versus just using the 4 together by myself?

Also, coming from a LAMP background, I originally started with procedural php programming before learning about mvc frameworks and all that jazz that made my life easier, would you recommend diving straight into working with frameworks (express) or just work with just node and angular instead (without express)?


I don't see why you would learn MEAN if you are already versed in LAMP.
You can use MongoDB also with LAMP, while with MEAN you cannot even switch database.
The main draw to MEAN is the single language which shouldn't be a factor if you already know LAMP.
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
April 19 2015 08:24 GMT
#12322
On April 19 2015 14:49 catplanetcatplanet wrote:
hey guise i'm not an advanced programmer or anything but i'm convinced my lab partner is a moron

[image loading]

what can i do to stop him from doing dumb stuff like this


code reviews

also choose your own partner
There is no one like you in the universe.
catplanetcatplanet
Profile Blog Joined March 2012
3836 Posts
Last Edited: 2015-04-19 22:36:49
April 19 2015 22:11 GMT
#12323
alright i'll try to get through to him in some way this week lol

meanwhile i'm having a problem with std::vector... my program involves a hashtable implemented as an array of vectors (this is how they told us to do it). checkLegal is supposed to check if the input key is in the dictionary which is indexed in a hashtable. basically the first time i call checkLegal it works fine but the second time it always segfaults in the containsKey method on vector::size() (line 96) even though it doesn't alter any of the vectors as far as I can tell. always the second time

The cout are for debugging because we didn't spend more than 10 minutes on gdb

we're not really too familiar with vectors, they just introduced them this week and told us to look at the stl documentation

this is the hash table method

91 template <typename K, typename V>
92 bool HashTable<K,V>::containsKey(K key) {
93 cout << "a" << endl;
94 int index = hash(key, capacity);
95 cout << "b" << endl;
96 cout << table[index].size();
97 cout << "c" << endl;
98 for(int c=0; c < table[index].size(); c++) {
99 if(table[index].at(c).first == key) {
100 return true;
101 }
102 }
103 return false;
104 }


this is the method in the actual program which calls containKey
dict is a hash table of word keys with meaningless int values

63 void checkLegal(HashTable<string, int> dict) {
64 string str;
65 cout << endl << "Enter the word you wish to play: ";
66 cin >> str;
67 if(dict.containsKey(str)) {
68 cout << "Congratulations, you have found a legal play!" << endl;
69 }
70 else {
71 cout << "That's not a word! What were you thinking?!" << endl;
72 }
73 }


any input would be appreciated!
I think it's finally time to admit it might not be the year of Pet
FFGenerations
Profile Blog Joined April 2011
7088 Posts
Last Edited: 2015-04-20 00:24:07
April 19 2015 23:12 GMT
#12324
am i supposed to do anything special to put my java web application onto a web server?

its supposed to be super simple, i export my project to a plain zip file , then in the server (Jelastic cloud) click Upload, then Deploy, then Open in browser

but i get


type Status report

message /

description The requested resource is not available.

Apache Tomcat/7.0.55


am i supposed to change anything in my application before uploading it ? do certain files need to be in the top of the zip folder ? do i need to configure it to run using Apache Tomcat instead of glassfish before zipping and uploading it?


edit OK theres a glassfish 4.1 setting option for my server environment setup, so i changed it from tomcat to that. it still 404ed tho

EDIT i changed my

[2015-04-19T23:57:07.392+0000] [glassfish 4.1] [WARNING] [] [javax.enterprise.system.container.web.com.sun.web.security] [tid: _ThreadID=30 _ThreadName=http-listener-1(4)] [timeMillis: 1429487827392] [levelValue: 900] [[
Context path from ServletContext: differs from path from bundle: /]]

[2015-04-19T23:57:15.132+0000] [glassfish 4.1] [SEVERE] [] [org.apache.jasper.servlet.JspServlet] [tid: _ThreadID=28 _ThreadName=http-listener-1(2)] [timeMillis: 1429487835132] [levelValue: 1000] [[
PWC6117: File "null" not found]]


servlet-controller from /g5 to g5 (and it added a glassfish-web.xml file to my project) but it still doesnt run


now i think i should have a .jar file in the project file.

i have been exporting my project to zip but i think you might be supposed to "Package" it instead

in netbeans , i rightclick my project and Propteries->Build tab. There is supposed to be a Package tab there but i have ONLY a Compile tab

am i supposed to add a plugin to netbeans that lets me Package ?
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2015-04-19 23:58:12
April 19 2015 23:56 GMT
#12325
On April 20 2015 07:11 catplanetcatplanet wrote:
alright i'll try to get through to him in some way this week lol

meanwhile i'm having a problem with std::vector... my program involves a hashtable implemented as an array of vectors (this is how they told us to do it). checkLegal is supposed to check if the input key is in the dictionary which is indexed in a hashtable. basically the first time i call checkLegal it works fine but the second time it always segfaults in the containsKey method on vector::size() (line 96) even though it doesn't alter any of the vectors as far as I can tell. always the second time

The cout are for debugging because we didn't spend more than 10 minutes on gdb

we're not really too familiar with vectors, they just introduced them this week and told us to look at the stl documentation

this is the hash table method

91 template <typename K, typename V>
92 bool HashTable<K,V>::containsKey(K key) {
93 cout << "a" << endl;
94 int index = hash(key, capacity);
95 cout << "b" << endl;
96 cout << table[index].size();
97 cout << "c" << endl;
98 for(int c=0; c < table[index].size(); c++) {
99 if(table[index].at(c).first == key) {
100 return true;
101 }
102 }
103 return false;
104 }


this is the method in the actual program which calls containKey
dict is a hash table of word keys with meaningless int values

63 void checkLegal(HashTable<string, int> dict) {
64 string str;
65 cout << endl << "Enter the word you wish to play: ";
66 cin >> str;
67 if(dict.containsKey(str)) {
68 cout << "Congratulations, you have found a legal play!" << endl;
69 }
70 else {
71 cout << "That's not a word! What were you thinking?!" << endl;
72 }
73 }


any input would be appreciated!



bool containsKey(K& key);
void checkLegal(HashTable<string, int>& dict)


Use references for passing. Otherwise, you call the copy constructor implicitly.

If you can use Visual Studio, you can easily set break points for debugging.
catplanetcatplanet
Profile Blog Joined March 2012
3836 Posts
April 20 2015 00:01 GMT
#12326
ahh okay i see why it segfaulted then. thanks!

why would it work fine the first time, though?
I think it's finally time to admit it might not be the year of Pet
FFGenerations
Profile Blog Joined April 2011
7088 Posts
Last Edited: 2015-04-20 02:38:12
April 20 2015 00:25 GMT
#12327
+ Show Spoiler +
am i supposed to add a plugin to netbeans that lets me Package my web application? i have just been exporting it to zip instead. there is no Package option in my project menu where it is supposed to be , i have only a Compile tab. i'm looking at random plugins but idk . my project is already a maven project


all "fixed" now:

OK since i am in a maven project (and for some reason cant enable my Java Web and EE plugin nomatter what type of project i create, although i dont think that has anything to do with anything) i had to rightclick my pom file -> maven -> goal -> type in package and click go. this created a snapshot jar for me to use. LUCKILY someone told me this otherwise how in FUCKS name are you supposed to figure that out. its not even a dropdown, you literally type in any random word and click go apparently. there was no way in hell i could have known it was due to me being in maven. especially when im staring down a plugin named EE "inactive" and no way to activate it.

when i make a regular java application i get the Package menu just fine.


my web app is online. going to have a break


question: to install java EE do you

1) install java sdk
2) download "java EE sdk" which is NOTHING except the glassfish4 folder
3) delete your current glassfish4.1 folder
4) paste the glassfish4 folder where that was
5) configure your IDE to use glassfish4.1 again

is that it? is javaEE literally glassfish?

fucks sake i was gonna go to the shop but after all this shit its 3am already

2nd question: i cant see any file upload/storage button on the Jeslastic cloud server. do i need to register with a regular web server instead or something? (ie not jeslastic)?? probably not but wheres the fucking file system
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
betaflame
Profile Joined November 2010
175 Posts
April 20 2015 03:17 GMT
#12328
On April 19 2015 15:42 fancyClown wrote:
Show nested quote +
On April 19 2015 08:10 betaflame wrote:
Hi guys, I have a good amount of experience with LAMP stack, php, mvc frameworks, jquery, javascript and such and I am looking into learning "MEAN" and I have a couple questions:

From my own research, there seems to be 2 main "frameworks" for MEAN but by itself, you could technically work with just mongodb, expressjs, angular and node on its own together. So is there any point in really going with those advertised "MEAN" stacks? Like what do they offer versus just using the 4 together by myself?

Also, coming from a LAMP background, I originally started with procedural php programming before learning about mvc frameworks and all that jazz that made my life easier, would you recommend diving straight into working with frameworks (express) or just work with just node and angular instead (without express)?


I don't see why you would learn MEAN if you are already versed in LAMP.
You can use MongoDB also with LAMP, while with MEAN you cannot even switch database.
The main draw to MEAN is the single language which shouldn't be a factor if you already know LAMP.


Well the purpose would be to learn angular for front end and also node backend for prospective jobs and also node would probably benefit some applications better than others in terms of speed and stuff. Express just happens to fall along with node and mongodb as a nosql db alternative which I agree isn't necessarily the big draw here (but again, nosql can be useful in some cases over mysql or other sql)
FFGenerations
Profile Blog Joined April 2011
7088 Posts
April 20 2015 06:05 GMT
#12329
ok so far i spent 6 hours trying to host my web application
to fix it i need to do "appcfg.py update --no_cookies MyProjectDirectory/" but i think the problem is i dont know how to find my project directory where the file is located. see stack overflowed thread
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
Manit0u
Profile Blog Joined August 2004
Poland17811 Posts
April 20 2015 07:57 GMT
#12330
On April 20 2015 15:05 FFGenerations wrote:
ok so far i spent 6 hours trying to host my web application
to fix it i need to do "appcfg.py update --no_cookies MyProjectDirectory/" but i think the problem is i dont know how to find my project directory where the file is located. see stack overflowed thread


http://aws.amazon.com/ec2/

Free hosting of small servers, if you don't need a db that's > 5GB and very fast server this is the thing for you.
Time is precious. Waste it wisely.
FFGenerations
Profile Blog Joined April 2011
7088 Posts
April 20 2015 09:14 GMT
#12331
thanks
its been
8 hours trying to just host it

right now i transferred my project to eclipse , fixed the stuff like having to manually add the correct jdk to properties because glassfish was greyed out with no error warning,



i have spent the last hour wondering why, when in eclipse, i try to run my JSP index file it gives a 404 and the console says
2015-04-20T10:06:23.011+0100|Severe: PWC6117: File "null" not found


in netbeans obviously it works fine

just before i gave up i thought to type in http://localhost:8080/animelist1/ into the browser and this worked.

why does it work in Netbeans as only http://localhost:8080/index.jsp

but in Eclipse as only http://localhost:8080/animelist1/ ?

Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
sabas123
Profile Blog Joined December 2010
Netherlands3122 Posts
April 20 2015 10:50 GMT
#12332
Are the variables of a class in java public of private by default?
The harder it becomes, the more you should focus on the basics.
FFGenerations
Profile Blog Joined April 2011
7088 Posts
Last Edited: 2015-04-20 10:54:08
April 20 2015 10:52 GMT
#12333
spastic attack
i got it online
i had to downgrape to jdk1.7 because google app engine doesnt support 1.8
some gnashing of teeth did occur
not only when eclipse failed to load even after i restored its ini file (fixed by using the main exe instead of my desktop shortcut)
but also after i suddenly failed to compile and was being told that my "nashorn" import no longer worked on this version (fixed by seeing it wasnt even used in my netbeans version so i removed it)

i cant fucking
cope

that was 12 solid hours if not more just to deploy my app online

now i have to go fix the bits up , hope they just "work" (FAT FUCKING CHANCE), then make one more parse , then i think thats it

oh no its not actually working it just loaded the page
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
berated-
Profile Blog Joined February 2007
United States1134 Posts
April 20 2015 11:35 GMT
#12334
On April 20 2015 19:52 FFGenerations wrote:
spastic attack
i got it online
i had to downgrape to jdk1.7 because google app engine doesnt support 1.8
some gnashing of teeth did occur
not only when eclipse failed to load even after i restored its ini file (fixed by using the main exe instead of my desktop shortcut)
but also after i suddenly failed to compile and was being told that my "nashorn" import no longer worked on this version (fixed by seeing it wasnt even used in my netbeans version so i removed it)

i cant fucking
cope

that was 12 solid hours if not more just to deploy my app online

now i have to go fix the bits up , hope they just "work" (FAT FUCKING CHANCE), then make one more parse , then i think thats it

oh no its not actually working it just loaded the page


You can't just keep throwing shit at it and hoping that it will work. At some point you are going to have to stop and understand what you are doing.

To deploy a web application you need to create a war file. It's pretty much the same as a zip except that it does have a certain structure. You can go find the structure.

Maven is not magic. The reason you type package is because of the maven life cycle. You can look up the maven life cycle to try to understand what its doing. You run goals against maven, which is what package is.

Why did you switch from netbeans to eclipse. When you use netbeans to get going, especially the EE version, it has a lot of handy stuff for you as you have found out, like deploying your stuff to glassfish automatically. Unfortunately, as you have also found out, it hides a lot of stuff from you as well, like the fact that its starting a glassfish container and deploying your files.

Glassfish is not EE, EE is the set of specifications that make enterprise life easier, like servlet, jsp, jaxrs, jms, etc... Glassfish is just an EE container. Tomcat is not an EE container, it is a servlet container. You can run some of the things from java EE like jsp, and servlet, but it doesn't provide out of the box functionality like JaxRs support and JMS.
solidbebe
Profile Blog Joined November 2010
Netherlands4921 Posts
April 20 2015 12:35 GMT
#12335
On April 20 2015 19:50 sabas123 wrote:
Are the variables of a class in java public of private by default?

Are you even allowed to not declare that?
That's the 2nd time in a week I've seen someone sig a quote from this GD and I have never witnessed a sig quote happen in my TL history ever before. -Najda
Gowerly
Profile Blog Joined July 2011
United Kingdom916 Posts
April 20 2015 12:39 GMT
#12336
On April 20 2015 19:50 sabas123 wrote:
Are the variables of a class in java public of private by default?

If it's anything like C++ or C# they're private until proven protected or public.
I will reduce you to a series of numbers.
FFGenerations
Profile Blog Joined April 2011
7088 Posts
Last Edited: 2015-04-20 13:08:26
April 20 2015 13:00 GMT
#12337
Do I have to use different syntax to access my servlet if I am using Tomcat instead of Glassfish or jkd 1.7 instead of jdk 1.8? I can't get my jquery ajax to communicate with my servlet (in eclipse 1.7 jdk tomcat instead of netbeans 1.8 jdk glassfish)

I think thats my problem.

http://stackoverflow.com/questions/29748553/server-not-mapping-ajax-to-serlvet-correctly-when-switched-to-java-1-7-and-eclip

but maybe not, i think the syntax is identical


javax.naming.NameNotFoundException: Name [main.SearchServlet/annj] is not bound in this Context. Unable to find [main.SearchServlet].
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
Manit0u
Profile Blog Joined August 2004
Poland17811 Posts
April 20 2015 13:06 GMT
#12338
On a sidenote, FFG you could also look into turning your app into a .war file. Deploying to Tomcat is really easy then.
Time is precious. Waste it wisely.
FFGenerations
Profile Blog Joined April 2011
7088 Posts
Last Edited: 2015-04-20 13:50:46
April 20 2015 13:14 GMT
#12339
ive been deloying it either as a war (much earlier) or straight to google app engine , but functionality is broken in eclipse/jdk1.7 . i get

javax.naming.NameNotFoundException: Name [main.SearchServlet/annj] is not bound in this Context. Unable to find [main.SearchServlet].

and dont know how to fix it.

do i have to add context something to tomcat context.xml or server.xml?

i dont think i do coz im using the @ annotation to do that already like it works in netbeans

i have a feeling i have to re-specify my main/root/starting place tho for some reason, coz in eclipse it takes me to /animelist1 and plain http://localhost:8080/ doesnt work. i need to do http://localhost:8080/animelist1 or http://localhost:8080/animelist1/index.jsp


let me rephrase it. coz i think this might be the answer ...

In netbeans version i access the jsp by going to localhost:8080 or localhost:8080/index.jsp , whereas in eclipse version i need to go to localhost:8080/animelist1.index.jsp or localhost:8080/animelist1 . For eclipse, going to localhost:8080 404s . Why might this be?

adding <context root>/<context root> to the server.xml file moved the accessibility of the page up one level from http://localhost:8080/animelist1/index.jsp to http://localhost:8080/animelist1/ but this tells me there's something different i need to configure to get it starting at http://localhost:8080/ .... what could that be?
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
iNsaNe-
Profile Joined January 2005
Finland5201 Posts
Last Edited: 2015-04-20 13:29:50
April 20 2015 13:28 GMT
#12340
On April 20 2015 19:50 sabas123 wrote:
Are the variables of a class in java public of private by default?


Neither, not having an access modifier is an access modifier on its own https://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html
It takes a fool to remain sane.
Prev 1 615 616 617 618 619 1032 Next
Please log in or register to reply.
Live Events Refresh
Escore
10:00
Season 3 Week 5
escodisco2672
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
LamboSC2 273
Tasteless 266
ProTech83
XaKoH 70
RushiSC 13
StarCraft: Brood War
Britney 55224
Calm 8282
firebathero 1396
Shuttle 1140
BeSt 720
Mini 605
Soma 427
EffOrt 285
Stork 226
Larva 205
[ Show more ]
Mind 177
Snow 158
hero 120
Mong 110
Rush 74
Sea.KH 57
Pusan 56
JulyZerg 45
ToSsGirL 44
scan(afreeca) 33
NaDa 32
sorry 29
sSak 28
Barracks 26
Sexy 14
Rock 11
Dota 2
Gorgc6939
qojqva2173
Counter-Strike
fl0m4019
kRYSTAL_47
Other Games
FrodaN1244
hiko1137
B2W.Neo929
Lowko602
Mlord508
DeMusliM307
Fuzer 231
crisheroes207
Liquid`VortiX155
djWHEAT81
TKL 64
Mew2King47
QueenE31
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 15 non-featured ]
StarCraft 2
• mYiSmile125
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 2960
• WagamamaTV543
League of Legends
• Jankos1868
• TFBlade1092
Upcoming Events
Big Brain Bouts
1h 55m
Spirit vs sOs
GgMaChine vs Percival
Serral vs MaxPax
OSC
8h 25m
Replay Cast
9h 55m
Afreeca Starleague
13h 55m
RSL Revival
18h 55m
ByuN vs SHIN
Solar vs Lambo
WardiTV Summer Champion…
20h 55m
Afreeca Starleague
1d 13h
RSL Revival
1d 18h
Clem vs Serral
herO vs Rogue
WardiTV Summer Champion…
1d 21h
WardiTV Weekly
2 days
[ Show More ]
Sparkling Tuna Cup
3 days
PiGosaur Cup
4 days
Replay Cast
4 days
Kung Fu Cup
4 days
Replay Cast
5 days
The PondCast
5 days
Replay Cast
6 days
IntoTheTV X SOOP
6 days
Liquipedia Results

Completed

Proleague 2026-07-30
SCTL 2026 Spring
Eternal Conflict S2 Finale

Ongoing

CSL 2026 Summer (S21)
KCM Race Survival 2026 Season 3
Escore Tournament S3: W5
RSL Revival: Season 6
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026

Upcoming

ASL Season 22: Qualifier #1
ASL Season 22: Qualifier #2
K-JUNGMAN
Acropolis #5
Escore Tournament S3: W6
Escore Tournament S3: W7
Escore Tournament S3: W8
HSC XXX
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
PiG Sty Festival 8.0
Light Tournament 2026
ESL Pro League Season 24
Stake Ranked Episode 4
Logitech G Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #5
BLAST Open Fall 2026
Esports World Cup 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Disclosure: This page contains affiliate marketing links that support TLnet.

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.