I was wondering why some programmer would change the length of an array from 10, let's say, to 2 elements.
Stuugie commented: Great Idea +2
JamesCherrill commented: Excellent idea, I will implement it. +14
I was wondering why some programmer would change the length of an array from 10, let's say, to 2 elements.
Ah, interesting. It is not a holiday season over here in Australia. I think making the decision for this request is going to be useful and helpful in the long run rather than the short run.
So do we give it a few days then ?
How are our moderators going with the idea? Is it still on and will be up in the forum hopefully?
Are you asking how to make a .jar more secure? So people won't decompile your code?
Yes, I would like to know about this. Just a brief intro about it will be good..
Thanks for the article.
println(drinks1.sort(compare));
Aren't you supposed to pass parameter values to the compare function?
Thanks for the thought that you're sharing in this discussion. I know OO way is better than the traditional way. Although, I haven't done OO in Javascript. I'm a beginner still.
Alright. I see what you mean. Thanks Ezzaral. I hope you guys are looking into the idea and it will be worked on soon. I just look forward to it.
Cheers,
The game I would like to make is something like a chess but it behaves a little differently. It has got a matrix of 3x4 and four different players at maximum. So if you click on one of the sequares, it should show you how much food in there (numeric value) and a little ants that you move to find out about the food in nests.
Is it hard to game programe in Javascript? Why does the mark-up language have to be DHTML? These days, people have moved on to HTML5 for the features it provides.
Maybe as a guide for those are posting for help with their Java problems, they will be given a -1 rep. Or that is a bit harsh?
Yeah, we would like to see people post something related to any of the numbered projects in the thread if they have any questions. But, the concern here is that what if a project X is a few months/years old and someone started going through the projects and wanted to ask about that particular project.
Someone will also need to ensure that "reponses" to the challenges/projects are not posted in the same thread
Where would people ask about a challange/project that is posted in the thread? Would they have to open a new thread for example?
Cheers,
What do you exactly mean by "you saw too many types of Java"?
Since you had a good background in programming, Java shouldn't be too hard then. I found this thread helpful if you're looking for some books on Java to read or tutorials to learn from as well. Download the Java SDK and JRE from here then direct the enviroment variable on your pc to where JRE is installed. Lastly, download Eclipse from its website.And, You're ready to go.
Make you own projects, like make your own calculator, or even make your own e-mail client(using javamail api).
Hopefully, we will get a thread that is going to have small projects for learners and java programmers to practise their knowledge. Just waiting for OPs to respond to our request.
Hi James, I'm strongly and kindly suggesting for Java operators to open a sticky thread for beginner to intermediate projects. Just allowing learners who just start learning Java, to have a look and feel of what they can do by programming in java.
Guidelines are pretty simple. An operator, of course will expectedly post more than one project over the time and a walk-through as well to explain how things can be solved for a particular project. The guidelines that I can suggest at the moment are as follows:
Have a look at the website I posted up in my first article. That should give you an idea of what should be done in the java forum.
Anyone do game programming in JavaScript at all?
Oh yeah, I see what you're coming from. When I started learning Java at uni, the codes that my lecturer was going through were just in plain English. For example, if x is instance of y; do something. Right. This looks simple. But, If you want to understand other things like simple-looking tricky loops, here is where you will need to spend some time breaking down the loop and following every variable/variant used in the loop and giving it a value as the loop does increment or decrement. And also, things like Array and ArrayList and lots of stuff like that.
Yeah, Thanks to all of you sharing links.
theuse Javascript mainly. Im getting my data from mysql db using php. Would I have to use JSON then?
HighCharts has excellent support, and I've been very happy with it for quite some time.
Are they free to use?
it is hard to learn a programming language like Java in just 21 days or even a month that 31 days. Like Stuugie said, there is a lot more than just getting the basics down.
Good luck.
You're using java for that? This sounds like something I was thinking about recently. I would like to know how it actually works and how it recognises peoples' faces
You've downloaded the SDK manager and the platform that you want to work on as well, right? I used Helios for my hello world application but it didn't work yerr.
You're welcome.
Check the linux open source community and join Google. I think they offer positions for Java developers. Good luck
Thanks for passing by and agreeing with the idea. Speaking of algorithms and data structures course in java, I thought about taking this course.Although, I wasn't entirely sure about the concepts and things like that. I heard they're all based on maths and you need to have a strong background in maths to solve many problems. I think I can read a book on this topic and try teaching myself the concepts.
The question I had in mind though is Should I get better at programming in java before taking that course or should I just learn the data structures and algorithms first and that will help me understand how to achieve a lot of things? Furthermore, I had a look at a book on the topic and it seems to be quite easy to understand how things work such as loops, for-loops, if-statements and making a good method with solid algorithms in mind.
I would love to see a sticky thread made by an operator or someone who has got very good and in-depth knowledge of Java and can start making small useful projects and get the discussion going. There is a thread in this forum but it is more about resources and FAQs.
Is that a game that you're designing for a course or something? In your description, you've said that you're making a schedule of course. But the code looks like it is more about a game. Am I Right?
Can you type with normal font, not all caps? All caps is like shouting.
Haha. I guess he wants URGENT help with his project so yeah.
Hi everyone,
I consider myself as a java beginner because I haven't been involved in a lot of projects. I'm opening this thread to raise awareness that we don't have java projects thread primarily for beginners and it could help advanced java programmers in terms of practising their java knowledge. I would like any operators in this forum to consider this idea. I am sure it will help people who haven't practisied what they have learnt. Any users likes the sound of the idea and wants to see it in this forum, please have your say here. Therefore, operators can know that there are some people interested in the idea.
I had a look at the python forum and they have got something to help python beginners increase their knowledge and get their hands on practical projects. I had a thought of going back to learning python but then I thought it is worth sticking to the languages I know because I want to use them. And, If I had to learn python again, that shouldn't be a major issue.
Thanks for reading this and please do have your opinion on the idea. I would really love to hear from you people.
You need to do a LOT of practice and get familiar with different Java libraries. Java is a good language. Get in the forum and ask questions anytime you want and we will help you out.
To interact with the database, you'll need to use PHP, of course. Try having a look at lightbox or similar photo viewer.
I wish I had done some animations in Javascript so I could help you out. I think I'm going to do a little bit of js animation in the next few days/weeks.
Try to do two for loops to check if the variable in loop one is equal to the variable in loop two.
I hope this helps.
I hope your problem is solved. If it is, help others know the thread is solved.
I think we're getting him on the right track hopefully.
Oh Okay. That is what you want. The question wasn't clear enough.
This should kill the session you've got running.
session_destroy();
Alright. try this code and see if it works.
Copy this into a file with the extension .php and put it in the www directory in your wamp. If It doesn't work, then post your code.
<?php
echo "hello world";
?>
Cheers
Cool. Thanks for the website. and I hope it is easy to use.
Ok. Now, I know what you mean. Make a form and put a table inside it with however many cells (This way you can get the marks from users/teachers and store them in the database)
In your second page, query your database and get the data needed and display it in a table or whatever format you want.
I hope this gives you a slight idea of how to do the tasks.
Ok. The steps are as follows:
1- Open any text editor and make a file and call page or whatever name .php so this will be page.php
2-Take the snippet below and paste in there.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title> I am checking the values for the options chosen in the form </title>
</head>
<body>
<form name="myForm" action="check.php" method="POST">
Choose one of these values:
<input type="submit" name="go" value="Go 1" />
<input type="submit" name="go" value="Go 2" />
<?php echo " <p style='background-color:red; width: 5%;'>" .@$_GET['text'] ."</p> "; ?>
</form>
</body>
</html>
3- Make another file and call it this name check.php if you want to change the name of the file, then you will have to change the name in the action attribute as well.
4- Take the snippet below and paste it in there
<?php
$go = $_POST["go"];
// here we're checking if there is a value for the variable "go" AND the value equals to "Go 1"
if( (isset($go)) AND ($go1 == "Go 1") ){
header("Location:checking.php?text=Go 1 is on");
}else if( (isset($go)) AND ($go1 == "Go 2") ){
// here we're checking if there is a value for the variable "go" AND the value equals to "Go 2"
header("Location:checking.php?text=Go 2 is on");
}
?>
Please mark this thread as solved if your problem is fixed. And also, Don't forget to give me a rep on the …
Sure. That is Easy.
Well, thanks for sharing this snippet. Heheh.. I will have a look at it later and see how useful it is.
Mark it as solved so it will stop confusing people.
Thanks for sharing.
echo ("<SCRIPT LANGUAGE='JavaScript'>
window.alert('You entered an incorrect password!')
</SCRIPT>");
Try this.
echo( " <script language='JavaScript'>
alert('You entered an incorrect password!');
</script>
"