|
Hello.
I think Google Maps API is a very good idea in order you get road map and positioning methods just implemented. Only handicap is that Google Maps is HTTP oriented, and you are thinking of a Swing application (via Applet or Standalone), so you have to decide how to integrate it :
- Case Applet, you can directly communicate with a Javascript controller that exploits Google Maps Api
- Case StandAlone, you could use URL class to wrapper Google Maps Api controller module.
It's more a design decission question than capabilities: if you are not sure about Gogle Maps, try to design your module interfaces covering generic functionalities and having in mind a GOF pattern; if so, your Google Factory implementation will be only a wrapper (one line of code) and if, once started, you detect Google is not reliable for any reason, you don't have to destroy any code, just implement the other factory.
I hope I've helped you.
Best Regards.
|
|
|
|
|
The problem with Google Maps is that i'm not sure that it provides me with the roads data.
i think it only allows to add a viewable map to my application.
what i need is to be able to get the data so i can provide it to my algorithm as input.
I think that what i'm looking for is called a vector map. (so i can represent the roads as a directed graph)
|
|
|
|
|
Hi.
You got that and much more, but embedded in Javascript objects (ideal for working with Ajax);I recommend you to take a look to http://code.google.com/intl/en-UK/apis/maps/documentation/javascript/v2/services.html and you'll see it clearly, your work is in building a wrapper class for "protocol" translation.
It could be helpful for you getting a (free) Google Maps API key and take a look before starting the project to see if it covers what you need.
Best regards
|
|
|
|
|
i want to write a a program that will accept student name and grades and output it.use an array data structure in the implementation this program and implement the following
write method that will traverses the array and allow the user to perform the following processes
a) search for a particular student and his or her marks
b)find the average of all the student in the class
c)find all student with a mark below 50 and output them.
i started off with this codes
import java.util.Scanner;
//import java.lang.String;
public class Main {
public static int n;
//public static String names;
//private static String[] nameS;
//private static String[] nameS;
/**
* @param args the command line arguments
*/
public static void main(String[] args/*,String[] nameS*/) {
Scanner in=new Scanner(System.in);
int Da=0;
int num []=new int[n];
//int x=0;
System.out.printf("%s\n","Enter the Number of student taking This Couse");
n=in.nextInt();
String name[]=new String [n];
System.out.printf("%s %s \n", "index","value");
for (; Da < name.length; Da++ )/*Da 4 Display array*/ {
System.out.printf( "%5d%8d\n", Da, name[Da] );
}
System.out.println("Enter the names of the student");
String names;
names=in.nextLine();
name[n] = new String(names);
for (; Da < name.length; Da++ ){
System.out.printf( "%5d%8d\n", Da, name[Da] );
}
}
}
i can not input the names into the array( name) i created
pls help me
|
|
|
|
|
Please don't repost the same thing again. People have already responded to you below.
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
Is there any way to check number of profile visits using FaceBook api.......or number or name of persons who visited profile...pls reply...
thnks
|
|
|
|
|
Have YOU checked the API? Look and see. Then if you want some help maybe try here, but I think some Farcebook forum/group would be a better bet as they'll know more about the ins and outs of social engineering.
Panic, Chaos, Destruction.
My work here is done.
or "Drink. Get drunk. Fall over." - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
|
|
|
|
|
some Farcebook forum/group
You're so right!
regards,
Torsten
I never finish anyth...
|
|
|
|
|
a program that will accept student name and grades and output it.use an array data structure in the implementation this program and implement the following
write method that will traverses the array and allow the user to perform the following processes
a) search for a particular student and his or her marks
b)find the average of all the student in the class
c)find all student with a mark below 50 and output them.
ps
pls help me write the codes
|
|
|
|
|
No mater how you ask, it is unlikely anyone will write the code for you.
This is not a difficult assignment. Use Sysytem.in to read from the console and System.out to write to it.
An array is simple enough to define:
String dataArray[][] = new String[2][4];
Now you can do your homework and get the warm glow of a job well done.
Panic, Chaos, Destruction.
My work here is done.
or "Drink. Get drunk. Fall over." - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
|
|
|
|
|
help me write the codes
What do you have got by now? Try it, when you can't get it right - come back and ask specific.
As we do not want do do your homework - that wouldn't help you in any way - we wont post codes. But we are pretty clever in giving unmistakable hints.
regards,
Torsten
I never finish anyth...
|
|
|
|
|
If you could show us what you've done, then we can help you to complete the assignment. Don't worry it's right or wrong, try it first. That makes a difference. Good luck!
I appreciate your help all the time...
CodingLover
|
|
|
|
|
import java.util.Scanner;
//import java.lang.String;
public class Main {
public static int n;
//public static String names;
//private static String[] nameS;
//private static String[] nameS;
/**
* @param args the command line arguments
*/
public static void main(String[] args/*,String[] nameS*/) {
Scanner in=new Scanner(System.in);
int Da=0;
int num []=new int[n];
//int x=0;
System.out.printf("%s\n","Enter the Number of student taking This Couse");
n=in.nextInt();
String name[]=new String [n];
System.out.printf("%s %s \n", "index","value");
for (; Da < name.length; Da++ )/*Da 4 Display array*/ {
System.out.printf( "%5d%8d\n", Da, name[Da] );
}
System.out.println("Enter the names of the student");
String names;
names=in.nextLine();
name[n] = new String(names);
for (; Da < name.length; Da++ ){
System.out.printf( "%5d%8d\n", Da, name[Da] );
}
}
}
i can not input the names into the array i created
pls help me
|
|
|
|
|
Do NOT set variable names with capital letter (see "int Da"). Names starting with capital letter are objects.
And do use an own counter for each loop. Otherwise you're in big trouble faster than you can imagine (might have happen here already..)
for (int iCount=0; iCount < name.length; iCount++ ) {
System.out.printf( "%5d\t%8d\n", iCount, name[iCount] );
}
Other points:
- i see a member "n" declared right on top. Where is it initialized? Do not make it "public static" - thats bad style. Set it "private final".
- use empty lines to give structure to your code. It stays readable and you in control. Also set some comments - just to tell yourself what is supposed to happen.
And finally your question:
You are not in a loop while entering the names. I suggest to take id and name of the student one at a time. And think of a object "student". It would make your task much easier.
regards
Torsten
I never finish anyth...
|
|
|
|
|
import java.util.Scanner;
//import java.lang.String;
public class Main {
public static int n;
//public static String names;
//private static String[] nameS;
//private static String[] nameS;
/**
* @param args the command line arguments
*/
public static void main(String[] args/*,String[] nameS*/) {
Scanner in=new Scanner(System.in);
int Da=0;
int num []=new int[n];
//int x=0;
System.out.printf("%s\n","Enter the Number of student taking This Couse");
n=in.nextInt();
String name[]=new String [n];
System.out.printf("%s %s \n", "index","value");
for (; Da < name.length; Da++ )/*Da 4 Display array*/ {
System.out.printf( "%5d%8d\n", Da, name[Da] );
}
System.out.println("Enter the names of the student");
String names;
names=in.nextLine();
name[n] = new String(names);
for (; Da < name.length; Da++ ){
System.out.printf( "%5d%8d\n", Da, name[Da] );
}
}
}
i can not input the names into the array i created
pls help me
|
|
|
|
|
First, please put your code between <pre> and </pre> tags so it's easier to read.
Next, try stepping through your for loops. It looks to me like you need a loop to cycle n times and ask for a name[i] each time.
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
pls can u do that loop for me
|
|
|
|
|
I'm going to pretend I didn't see that question.
Try it yourself and ask specific questions if you have trouble. I have my own homework to do.
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
Firstly, LIQUID NITROGEN.
Secondly, a for loop.
See if you can crack this: fb29a481781fe9b3fb8de57cda45fbef
The unofficial awesome history of Code Project's Bob!
"People demand freedom of speech to make up for the freedom of thought which they avoid."
|
|
|
|
|
You forgot about bacon.
Panic, Chaos, Destruction.
My work here is done.
or "Drink. Get drunk. Fall over." - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
|
|
|
|
|
Bacon???
See if you can crack this: fb29a481781fe9b3fb8de57cda45fbef
The unofficial awesome history of Code Project's Bob!
"People demand freedom of speech to make up for the freedom of thought which they avoid."
|
|
|
|
|
|
hello every one
i am new to web services and i have develop web service client i netbeans using wsdl and it work will
but now i want to develop web services client without knowing the wsdl i just now the link of the web service like: aaaa.php
can i do it because i search but i did not find any results
|
|
|
|
|
|
thanks is what you attach example
can you guide me to tutorial , actually the web service is public i did not implement it
its news page and i want to read its content and search through it
modified on Wednesday, December 1, 2010 10:29 AM
|
|
|
|