|
@Richardd MacCutchan........haiii sir this site does not allow me to download here .....please can u mail to mvmohan19@gmail.com.....its my request
|
|
|
|
|
|
Here is my CV - short version , I am not applying for a job
Wrote my first program in assembly in 1973
...
currently enjoying life as retired OF and writing code for ATmel SAM3x8E ( I do not want to advertise here the real hardware, they do not deserve that ).
I am frustrated with rudimentary ( to put it nicely) IDE I am using ( yes I use ATmel Studio too) and would like to patch it up.
It is written in Java and I have NO experience in Java because first time I was exposed to Java someone said "it does not use pointers" and the audience cheered! So I never bothered to learn Java, until now.
Hence I am looking for simple "how to do Java" book. I do not want "Java for dummies" or "click this and that and watch the screen" book with over 500 pages fat.
I studied C using K&R book and if there is such a <b>book style on Java</b> let me know.
Cheers Vaclav
|
|
|
|
|
|
Thanks Richard, looks better that K&R Ha Ha
BTW I still owe you an answer on my template problem few weeks back.
You were absolutely right, the problem was I was not looking at the rest of the parameters I have added to the original template.
It got little convoluted using both overload and several similar templates.
But it is better now, still not finished.
( I am having too much fun with too many distractions from coding, last one - I am going back to my homeland for few weeks.)
Cheeers Vaclav
|
|
|
|
|
Hi everyone,
I would be grateful if someone help me with next problem that i have in Java:
Thing that i want to do is to make client-server chat app on web. I am using RMI. I will show just important class for my problem..
Here is mu server interface:
<pre lang="java">public interface ChatServerIF extends Remote {
//void registerChatClient(ChatClientIF chatClient) throws RemoteException;
//void broadcastMessage(String message) throws RemoteException;
void registerClient(String ime, ChatClientIF chatKlijent) throws RemoteException;
void posaljiPoruku(String ime, String poruka) throws RemoteException;
void dodajWeb(String naziv, PrintWriter print) throws RemoteException;
void pronadjiWeb(String naziv) throws RemoteException;
}
server class:
public class ChatServer extends UnicastRemoteObject implements ChatServerIF {
public static final long serialVersionUID = 1L;
private HashMap<String, ChatClientIF> hmap = new HashMap<String, ChatClientIF>();
private Map<String, PrintWriter> web = new HashMap<String, PrintWriter>();
public List<HttpServletResponse> lista = new ArrayList<HttpServletResponse>();
public ChatServer() throws RemoteException{
}
@Override
public synchronized void dodajWeb(String naziv, PrintWriter print) throws RemoteException{
web.put(naziv, print);
}
@Override
public void pronadjiWeb(String naziv) throws RemoteException {
}
and part of servlet:
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
try (PrintWriter out = response.getWriter()) {
out.println("<!DOCTYPE html>");
out.println("<html>");
out.println("<head>");
out.println("<title>Servlet IgraServlet</title>");
out.println("</head>");
out.println("<body>");
String username = request.getParameter("username");
ChatServerIF chat = (ChatServerIF) request.getSession().getAttribute("server");
ChatClient cc = (ChatClient) request.getSession().getAttribute("klijent");
PrintWriter pw = (PrintWriter) request.getSession().getAttribute("out");
chat.dodajWeb(username, pw);
cc.run();
out.println("aaa");
out.println("<h1>Servlet IgraServlet at " + request.getContextPath() + "</h1>");
out.println("</body>");
out.println("</html>");
}
My idea is to store user and PrintWritter for that user, from web page on server in order i can later sent message to that client.
Am i thinking good, or completely wrong?
But problem comes when i call chatServer interface method on servlet "chat.dodajWeb(username, pw)" i got next error:
java.rmi.MarshalException: error marshalling arguments; nested exception is:
java.io.NotSerializableException: java.io.PrintWriter
Please help me i try to search solution on internet, but for now without result..
|
|
|
|
|
plz help us to create intranet mailing system project using java and the platform is netbeans plz give us software and code for create this project.
|
|
|
|
|
Sorry no, this site does not provide code to order. Also, since it is supposed to be your project then you are expected to do the work.
|
|
|
|
|
1. Sorted Names – Write a program that asks the user to enter 10 last names (the names of every student in our class) and then displays the names sorted in ascending order. For example, if the user entered “Charlie” “Leslie” and “Andy” the program would display: Andy, Charlie, Leslie
2.. An internet service provider has 3 different packages.
A: For $9.95 per month 10 hours of access are provided. Additional hours are $2.00/hour
B: For $13.95 per month 20 hours of access are provided. Additional hours are $1.00/hour
C: For $19.95 per month unlimited access is provided
Write a program that calculates a customer’s monthly bill. It should ask the user to enter the letter of the package the customer has purchased (A, B, or C) & the number of hours that were used. It should display the total charges
3. 3. Bank Charges: A bank charges a base fee of $10 per month, plus the following check fees for a commercial checking account.
$.10 each for less than 20 checks
$.08 each for 20-39 checks
$.06 each for 40-59 checks
$.04 each for 60+ checks
Write a program that asks for the number of checks written for the month. The program should then calculate and display the bank’s service fees for the month.
Any help with this would be greatly appreciated!
|
|
|
|
|
|
Member 12074376 wrote: Any help with this would be greatly appreciated Then you need to explain what help you want. If you are expecting someone else to write the code for you then I am afraid you are out of luck.
|
|
|
|
|
Your homework is set to test what you know, not what a bunch of random strangers on the Internet know.
Try writing the code yourself. If you genuinely can't get started, then talk to your teacher. Nobody here is going to do your homework for you.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
What have you done so far, where are you having trouble with it? Or are you just waiting for someone to do the assignment for you?
"I've seen more information on a frickin' sticky note!" - Dave Kreskowiak
|
|
|
|
|
I have been told a Binary search tree can be used with a Bag class. I can see the picture of it in my head, but not sure how it would convert to Code? Any input would be great!
|
|
|
|
|
Member 12050371 wrote: I have been told Then you should ask that person for clarification.
|
|
|
|
|
i want that u suggest me a book for beginners of java .. please you can suggest any types of notes also. . and what is easy and simpler font chooser code ?? thankuuu
|
|
|
|
|
|
|
|
Hello All,
I am a current college student that is back in school for a second career. I am well behind the curve (48 yrs old.) as far as programming is concerned, so every minute I spend wasted is one more that I fall behind.
I know that I am probably opening up a Pandora’s box, but I have heard about the certifications but yet I cannot find much information – such as which ones are the important certifications to have. If you could start it over and do your learning, training again – How would you do it? I wanted to ask those in the field, as none of my friends are in the field.
Any help would be greatly appreciated.
Matt
|
|
|
|
|
Certifications do not necessarily have great value, as most employers are looking for people with experience, or a college/university degree. And which subject to choose is always a difficult question to answer, as it depends on your interests and the requirements of the job market that you are targeting. You should talk to your professor about it as (one hopes) he/she has a good understanding of the market.
|
|
|
|
|
Am trying to make a java program that displays random letters till the letters make one of the words at, is, he, we, up, or on. I think am on the right track, just not sure how to stop when i reach one of those words. This is what i have so far.
public class main {
public static void main (String[] args) {
final int NUMBER_OF_CHARS = 100000;
String[] words = {"at","is","he","we","up","on"};
for (int i = 0; i < NUMBER_OF_CHARS; i++) {
char ch = main.getRandomLowerCaseLetter();
if ((i + 1) % 40 == 0)
System.out.println(ch);
else
System.out.print(ch);
}}
public static char getRandomCharacter(char ch1, char ch2) {
return (char)(ch1 + Math.random() * (ch2 - ch1 + 1));
}
public static char getRandomLowerCaseLetter() {
return getRandomCharacter('a', 'z');
}}
|
|
|
|
|
Just add some logic inside your loop to check every two characters to see if they match any of the words in the list. This would mean another loop that iterates through that list and does a string comparison[^] with your new 'word'.
|
|
|
|
|
hi
i am trying to use java to iterate thru the window desktop element.
does anyone know the API in java?.
i would like to print out in java the whole tree of my current desktop GUI elements.
|
|
|
|
|