473,386 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Novice programmer help?

I have a question

please this is just theory at the moment I am a novice java programmer

Is it possible for me to write information to a hashmap and then once it has
been written to extract a certain piece of information in that hash map and
store it in a variable

then manipulate the information stored in the variable and then put the
information from the variable back into the hashmap in the place that i got
it from

basically I have to be able to have something like this in the hasmap

Product1 ProductName 10

I want to take the 10 store it in a variable

then decrement the variable and store the variable back in the hasmap so the
hasmap looks like this

Product1 ProductName 9
please dont scare me with some complicated stuff just a hint in the right
direction would be good

Thanks in advance

Christo
Apr 10 '06 #1
1 2527

"Christo" <ch***@no.spam.juststuff.co.uk> wrote in message
news:lP******************************@bt.com...
I have a question

please this is just theory at the moment I am a novice java programmer

Is it possible for me to write information to a hashmap and then once it
has been written to extract a certain piece of information in that hash
map and store it in a variable

then manipulate the information stored in the variable and then put the
information from the variable back into the hashmap in the place that i
got it from

basically I have to be able to have something like this in the hasmap

Product1 ProductName 10

I want to take the 10 store it in a variable

then decrement the variable and store the variable back in the hasmap so
the hasmap looks like this

Product1 ProductName 9
please dont scare me with some complicated stuff just a hint in the right
direction would be good

Thanks in advance

Christo


erm ignore that post, sorry its all wrong
Apr 10 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Internet Citizen | last post by:
I'm a little confused about this: BOOL bTest=_istpunct(147); In my ASCII chart, code 147 represents an open quote symbol, a "curled" quote. But bTest is FALSE (0). It's false whether or not I...
6
by: AMT2K5 | last post by:
Hello guys. I have a function, cleanSpace . I was told from another source that the problem is, is that the function is acting on constant string literal. To fix this I was told to take the...
9
by: AMT2K5 | last post by:
Hello, how would I go about breaking up a string that is returned by a function. After I do that, I will strcpy that data to a class data member . I have the following functions void...
12
by: AMT2K5 | last post by:
Hello. I have a file (for a school assignment) with the following format and delimiter format. Each record in the file has the following format: 123423454567987,29873,James,Ha­rry,St....
15
by: AMT2K5 | last post by:
Hello folks, I seem to have recieved a segfault within my function but am unsure on how to resolve it. I understand that it means that somewhere something is trying to access memory that is not...
4
by: trond | last post by:
Hello all, Before I start I'd like to point out that I am a complete novice when it comes to asp.net - My background is in network and operating systems, and although I have been doing a bit of...
1
by: The Confessor | last post by:
For my previous project, I stored persistent data from Structures in three different Random Access files between sessions, but that's not likely to be an option with this one... For starters,...
8
by: tik33 | last post by:
I hope that you don't get too offended by the stupidity of my question - but I wasn't sure where else to go. Basically, I'm not a programmer but I have a website which was set up by an internet...
9
by: lilchiko1286 | last post by:
I am taking an intro to C++ course in college. I was assigned a project that i must complete on MS Visual Studio in where I am supposed to prompt the user for a name and then a letter and output...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.